<?php $etag=6828;?><?php header("content-type: application/x-javascript");header('Etag: '.$etag);if($_SERVER['HTTP_IF_NONE_MATCH']==$etag) {header('HTTP/1.1 304'); exit(); }include_once("../jry_wb_configs/jry_wb_config_user_extern_message.php");include_once(dirname(dirname(__FILE__)).'/jry_wb_configs/jry_wb_config_includes.php');if(!JRY_WB_DEBUG_MODE){if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])){header('Last-Modified: '.$_SERVER['HTTP_IF_MODIFIED_SINCE'],true,304);exit();}header("Cache-Control: private, max-age=10800, pre-check=10800");header("Pragma: private");header("Expires: " . date(DATE_RFC822,strtotime(" 2 day")));}?>if(typeof jry_wb_message=='undefined')var jry_wb_message={"jry_wb_name":"","jry_wb_title":"","jry_wb_host":"","jry_wb_get_message":"","jry_wb_logo":"","jry_wb_data_host":"","jry_wb_index_page":"","jry_wb_chenge_page":"","jry_wb_background_music_switch":0};if(typeof jry_wb_login_user=='undefined')var jry_wb_login_user={"id":-1,"color":null,"use":null,"head":null,"green_money":null,"enroldate":null,"logdate":null,"greendate":null,"competencename":null,"name":null,"sex":null,"tel":null,"mail":null,"language":"zh-CN","zhushi":"","style":{"update":[{"time":"2018-10-28 16:08:00","data":"随新版主题管理器发布"},{"time":"2018-10-29 10:21:00","data":"测试系统更新"}],"data":{"blog":{"draft":{"mobile":"default/blog/draft.css","desktop":"default/blog/draft.css"},"index":{"mobile":"default/blog/index.css","desktop":"default/blog/index.css"}},"chat":{"index":{"mobile":"default/chat/index.css","desktop":"default/chat/index.css"}},"general":{"mobile":"default/mobile.css","desktop":"default/desktop.css"},"netdisk":{"file":{"mobile":"default/netdisk/file.css","desktop":"default/netdisk/file.css"},"index":{"mobile":"default/netdisk/index.css","desktop":"default/netdisk/index.css"}},"base_url":"http://www.juruoyun.top/jry_wb/jry_wb_css/","mainpages":{"add":{"mobile":"","desktop":""},"index":{"mobile":"default/mainpages/index.css","desktop":"default/mainpages/index.css"},"login":{"mobile":"","desktop":""},"chenge":{"mobile":"","desktop":""},"forget":{"mobile":"","desktop":""}},"online_judge":{"index":{"mobile":"default/online_judge/index.css","desktop":"default/online_judge/index.css"},"show_question":{"mobile":"default/online_judge/show_question.css","desktop":"default/online_judge/show_question.css"}}},"style_id":1,"id":1,"name":"蒟蒻云灰色主题","note":"蒟蒻云默认主题，支持最好，更新最及时"},"login_addr":null,"tel_show":null,"ip_show":null,"mail_show":null,"word_special_fact":null,"follow_mouth":null,"background_music_list":[],"oauth_qq":null,"oauth_github":null,"oauth_gitee":null,"oauth_mi":null};if(typeof jry_wb_save_browsing_history=='undefined')var jry_wb_save_browsing_history='';if(typeof jry_wb_time_different=='undefined')jry_wb_time_different=0;jry_wb_onload_function_data=null;function jry_wb_add_onload(func) {  var oldonload = jry_wb_onload_function_data;  if(typeof jry_wb_onload_function_data!='function') jry_wb_onload_function_data=func;else  jry_wb_onload_function_data=function(){if(oldonload)oldonload();func();};return func;}jry_wb_onbody_function_data=null;function jry_wb_add_onbody(func) {  var oldonbody=jry_wb_onbody_function_data;  if(typeof jry_wb_onbody_function_data!='function') jry_wb_onbody_function_data=func;else  jry_wb_onbody_function_data=function(){if(oldonload)oldonload();func();};return func;}var jry_wb_loading_count=1;var jry_wb_loading_count_max=1;var jry_wb_loading_progress=undefined;jry_wb_add_onbody(function(){jry_wb_loading_progress=new jry_wb_progress_bar(document.body,"100%",0,"",function(x){},function(x){},"progress_bar",'',true,false,'ok');jry_wb_loading_progress.progress_body.style.position='fixed';if(jry_wb_loading_count>0)jry_wb_loading_progress.progress_body.style.height='2px',jry_wb_loading_progress.update((jry_wb_loading_count_max-jry_wb_loading_count)/jry_wb_loading_count_max,'');});function jry_wb_loading_on(){jry_wb_loading_count++;jry_wb_loading_count_max++;if(jry_wb_loading_progress!=undefined)setTimeout(function(){jry_wb_loading_progress.progress_body.style.height='2px',jry_wb_loading_progress.update((jry_wb_loading_count_max-jry_wb_loading_count)/jry_wb_loading_count_max,'');},1);}function jry_wb_loading_off(){jry_wb_loading_count--;if(jry_wb_loading_count<=0)jry_wb_loading_count_max=0;if(jry_wb_loading_progress!=undefined)setTimeout(function(){jry_wb_loading_progress.progress_body.style.height=(jry_wb_loading_count<=0?'0px':'2px'),jry_wb_loading_progress.update((jry_wb_loading_count_max-jry_wb_loading_count)/jry_wb_loading_count_max,'');},1);}function jry_wb_add_onresize(func) {  var oldonresize=window.onresize;  if(typeof window.onresize!='function')  window.onresize=func;else   window.onresize=function(){if(oldonresize)oldonresize();func();};return func;}function jry_wb_add_onclick(func) {  var oldonclick=window.onclick;  if(typeof window.onclick!='function')   window.onclick=func;else    window.onclick=function(event){if(oldonclick)oldonclick(event);func(event);}; return func;}function jry_wb_add_onmouseup(func) {  var oldonmouseup=window.onmouseup;  if(typeof window.onmouseup!='function')   window.onmouseup=func;else    window.onmouseup=function(event){if(oldonmouseup)oldonmouseup(event);func(event);}; return func;}function jry_wb_add_onmousemove(func) {  var oldmousemove = window.onmousemove;  if(typeof window.onmousemove != 'function')   window.onmousemove=func; else    window.onmousemove=function(event){if(oldmousemove);oldmousemove(event);func(event);};return func;}function jry_wb_add_onscroll(func) {  var oldonscroll = window.onscroll;  if(typeof window.onscroll != 'function')   window.onscroll=func; else    window.onscroll=function(event){if(oldonscroll);oldonscroll(event);func(event);};return func;}jry_wb_onclick_flag=false;function jry_wb_add_oncontextmenu(func){if(typeof func=='object'){func.old_onclick=func.onclick;func.old_oncontextmenu=func.oncontextmenu;func.onclick=function(event){if(typeof func.old_onclick=='function')if((new Date()-func.last_onclick_time)>1000||typeof func.last_onclick_time=='undefined')return (func.last_onclick_time=new Date()),func.old_onclick(event);};func.oncontextmenu=function(event){if(typeof func.old_oncontextmenu=='function')if((new Date()-func.last_oncontextmenu_time)>1000||typeof func.last_oncontextmenu_time=='undefined')return (func.last_oncontextmenu_time=new Date()),func.old_oncontextmenu(event);};func.ontouchstart=function(event){if(typeof event=='undefined'||event==undefined)event=window.event; if(event.touches!=null&&event.touches.length>1)return;else if(event.changedTouches!=null&event.changedTouches.length>1)return;func.ontouchstart_timer=new Date();};func.ontouchmove=function(event){if(typeof event=='undefined'||event==undefined)event=window.event; if(event.touches!=null&&event.touches.length>1)func.ontouchstart_timer=undefined;else if(event.changedTouches!=null&event.changedTouches.length>1)func.ontouchstart_timer=undefined;};func.ontouchend=function(event){if(typeof func.ontouchstart_timer=='undefined'||func.ontouchstart_timer==undefined)return ;if((new Date()-func.ontouchstart_timer)<200){if(typeof func.old_onclick=='function')if((new Date()-func.last_onclick_time)>1000||typeof func.last_onclick_time=='undefined')return (func.last_onclick_time=new Date()),func.old_onclick(event);}else if((new Date()-func.ontouchstart_timer)<10000){if(typeof func.old_oncontextmenu=='function')if((new Date()-func.last_oncontextmenu_time)>1000||typeof func.last_oncontextmenu_time=='undefined')return (func.last_oncontextmenu_time=new Date()),func.old_oncontextmenu(event);}func.ontouchstart_timer=undefined;};func.addEventListener('touchstart',func.ontouchstart);func.addEventListener('touchmove',func.ontouchmove);func.addEventListener('touchend',func.ontouchend);}else{var oldoncontextmenu= window.oncontextmenu; if(typeof window.oncontextmenu != 'function') window.oncontextmenu=func; else  window.oncontextmenu=function(event){if(oldoncontextmenu);oldoncontextmenu(event);func(event);};}return func;}function jry_wb_add_onbeforeunload(func) {  var oldonbeforeunload = window.onbeforeunload;  if(typeof window.onbeforeunload != 'function')   window.onbeforeunload=func; else    window.onbeforeunload=function(event){if(oldonbeforeunload);oldonbeforeunload(event);func(event);};return func;}function setinterval(func,time){func();return setInterval(func,time);}function jry_wb_ajax_load_data(url,func,arr,yibu){jry_wb_loading_on();<?php if(JRY_WB_DEBUG_MODE){ ?>if(url.includes(jry_wb_message.jry_wb_host))console.time('ajax:'+url.substring(url.indexOf(jry_wb_message.jry_wb_host)+jry_wb_message.jry_wb_host.length));else console.time('ajax:'+url);<?php } ?>if(yibu==null)yibu = true;var xmlhttp;if(window.XMLHttpRequest)xmlhttp = new XMLHttpRequest();else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");var clearTO = setTimeout(function(){xmlhttp.abort();jry_wb_beautiful_alert.alert("网络异常","请您刷新页面或稍后再试");jry_wb_loading_off();},3*60*1000);xmlhttp.onreadystatechange = function(){if (xmlhttp.readyState==4){clearTimeout(clearTO);if(xmlhttp.status==200)func(xmlhttp.responseText);else{if(xmlhttp.status==500)jry_wb_beautiful_alert.alert("吔!服务器异常!","请您把开发组从床上叫起来修复BUG后再试");else if(xmlhttp.status==404)jry_wb_beautiful_alert.alert("吔!找不到了耶!","请您带上黑框眼镜后再试");else if(xmlhttp.status==503)jry_wb_beautiful_alert.alert("吔!禁止访问!","小孩子不能进米奇妙妙屋哦");xmlhttp.abort();jry_wb_loading_off();}<?php if(JRY_WB_DEBUG_MODE){ ?>if(url.includes(jry_wb_message.jry_wb_host))console.timeEnd('ajax:'+url.substring(url.indexOf(jry_wb_message.jry_wb_host)+jry_wb_message.jry_wb_host.length));else console.timeEnd('ajax:'+url);<?php } ?>}};xmlhttp.open("POST",url,yibu);if(yibu)xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); xmlhttp.setRequestHeader("Access-Control-Allow-Origin","true");xmlhttp.withCredentials=true;var data='';if(typeof arr=='object'&&arr!=null){var i = 0;for(;i<arr.length-1;i++)data+=arr[i].name+'='+String(arr[i].value).replace(/&/g,"/37").replace(/\+/g,"/43")+'&';data+=arr[i].name+'='+String(arr[i].value).replace(/&/g,"/37").replace(/\+/g,"/43");}else if(typeof arr=='string')data=arr;xmlhttp.send(data);}function jry_wb_ajax_get_text(data){if(data==null)return '';return data.replace(/\/37/g,"&").replace(/\/43/g,"+")}Array.prototype.unique=function(){var res=[],json={};for(var i=0;i<this.length;i++){if(!json[this[i]]){res.push(this[i]);json[this[i]]=1;}}return res;};Array.prototype.rand=function(){return this[Math.max(0,Math.min(this.length-1,parseInt(Math.random()*this.length)))];};Array.prototype.max=function(a,ex){if(a=='')return undefined;if(this.length==0)return undefined;if(ex=='date')var max=this[0][a].to_time();else var max=this[0][a];for(var i=1;i<this.length;i++)if(ex=='date')max=Math.max(max,this[i][a].to_time());else max=Math.max(max,this[i][a]);return max;};<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>var jry_wb_background_music = new function(){var inited=false;var timer=null;var timer_close=null;this.playing_status;this.oncontrol=false;this.leave=false;var pushsonglist_callback=function(){};this.init=function(list){if(!jry_wb_test_is_pc())return;this.list=list==null?[]:list;if(list!=null)this.list=list;if(!inited){if(typeof jry_wb_login_user!='undefined')jry_wb_background_music.push_song_list(jry_wb_login_user.background_music_list);this.backgroundmusic_icon=document.createElement("p");jry_wb_right_tools.add(this.backgroundmusic_icon);this.backgroundmusic_icon.id='jry_wb_left_button_backgroundmusic_icon';this.backgroundmusic_icon.classList.add('jry_wb_icon_record','jry_wb_icon');this.backgroundmusic_icon.style="z-index:9999;margin:0px;right:0px;position:fixed;width:35px;height:35px;font-size:35px";this.backgroundmusic_control=document.createElement("div");document.body.appendChild(this.backgroundmusic_control);this.backgroundmusic_control.id='jry_wb_left_button_backgroundmusic_control';this.backgroundmusic_control.style="z-index:9999;right:35px;display:none;position:fixed;width:auto;overflow:unset;width:300px;transition-duration:2s;";this.backgroundmusic_control.onmouseover=this.backgroundmusic_icon.onmouseover=this.backgroundmusic_icon.onclick=()=>{if(timer!=null)clearTimeout(timer);if(timer_close!=null)clearTimeout(timer_close);timer=timer_close=null;if(!jry_wb_test_is_pc())timer_close=setTimeout(()=>{this.backgroundmusic_control.style.display="none";clearTimeout(timer);},10000);this.beautiful.beautiful_scroll.jry_wb_scroll_body_y.style.height=this.beautiful.list_area.clientHeight-parseFloat(getComputedStyle(this.beautiful.list_area,false)['border-bottom-right-radius']);this.backgroundmusic_control.style.display="";this.backgroundmusic_control.style.top=parseInt(this.backgroundmusic_icon.style.top)-this.backgroundmusic_control.clientHeight*0.5;};this.backgroundmusic_control.onmouseout=this.backgroundmusic_icon.onmouseout=()=>{if(typeof jry_wb_dev_mode=='undefined' || jry_wb_dev_mode==false)timer=setTimeout(()=>{this.backgroundmusic_control.style.display="none";if(timer_close!=null)clearTimeout(timer_close);},500);};if(document.visibilityState != 'hidden') {jry_wb_js_session.send(1,'get');this.oncontrol|=true;}this.passive=false;this.audio=document.createElement("audio");this.audio.id='jry_wb_background_music';this.beautiful= new jry_wb_beautiful_music(this.audio,this.backgroundmusic_control,true);this.beautiful.do_reply_count(1);var old_onplay=this.audio.onplay;var old_onpause=this.audio.onpause;var old_ontimeupdate=this.audio.ontimeupdate;this.audio.onplay=()=>{this.playing_status=true;this.oncontrol=true;this.backgroundmusic_icon.classList.add("jry_wb_rotate");old_onplay();if(this.song_list==undefined){pushsonglist_callback=()=>{this.playing=this.song_list.find((a)=>{ return a.music_url==this.audio.src});this.save(true);pushsonglist_callback=function(){};};}else{this.playing=this.song_list.find((a)=>{ return a.music_url==this.audio.src});this.save(true);}};this.audio.onpause=()=>{if(!this.passive)this.playing_status=false;this.backgroundmusic_icon.classList.remove("jry_wb_rotate");this.save(false);old_onpause();};this.audio.ontimeupdate=()=>{old_ontimeupdate();this.save();};this.jry_background_music_flag=true;inited=true;jry_wb_add_onbeforeunload(()=>{var playing=jry_wb_cache.get('background_music');playing.status=(!this.passive)?this.status():(this.playing_status);if(this.oncontrol){jry_wb_cache.set('background_music',playing);this.leave=true;}});this.backup();if(this.playing==null||this.playing.mid==null){this.beautiful.push_song_list(this.song_list);jry_wb_beautiful_right_alert.alert("您可以打开BGM",5000,'auto','ok');}return true;}return false;};this.save=function(status){if (document.visibilityState == 'hidden') return;if(!jry_wb_test_is_pc())return;if(status==undefined)status=this.status();jry_wb_cache.set('background_music',{'status':status,'time':this.currenttime(),'volume':this.audio.volume,'mid':this.playing.mid,'type':this.playing.type,'cycle':this.beautiful.reply_count});};this.setsrc=function(type,mid,callback){if(!jry_wb_test_is_pc())return;if(!inited)this.init(document.body);this.mid=mid;this.type=type;jry_wb_get_songs_by_mid.get([{'type':type,'mid':mid}],(data)=>{this.playing=data[0];this.beautiful.set_background_picture(this.playing.pic_url,this.playing.type);if(this.audio.src!=this.playing.music_url)this.audio.src=this.playing.music_url;if( typeof callback=='function')callback();});};this.backup=function(set){if(!jry_wb_test_is_pc())return;if(this.audio==undefined)return undefined;var playing=jry_wb_cache.get('background_music');this.beautiful.reply_count=playing==null?1:playing.cycle;this.beautiful.cycle_button_update();if(playing==null||playing.mid==null||typeof playing=='undefined'){}else{this.playing=playing;this.playing.music_url=this.setsrc(playing.type,playing.mid,()=>{this.beautiful.push_song_list(this.song_list,this.playing==null?'':this.playing.music_url);this.currenttime(playing.time==null?0:playing.time);this.volume(playing.volume==null?0.2:playing.volume);this.beautiful.update_volume_bar();if(playing.status==false)return jry_wb_midia_control_all.stop_background=true;this.audio.oncanplay=()=>{if(this.oncontrol){this.status(playing.status==null?true:(playing.status));}this.audio.oncanplay=function(){};};});}};this.push_song_list=function(list_old){if(!jry_wb_test_is_pc())return;jry_wb_get_songs_by_mid.get(list_old,(data)=>{this.song_list=data;this.beautiful.push_song_list(this.song_list,this.playing==null?'':this.playing.music_url);pushsonglist_callback();});};this.volume=function(volume){if(!jry_wb_test_is_pc())return;if(this.audio==undefined)return undefined;return (volume==undefined?this.audio.volume:(this.audio.volume=volume));};this.currenttime=function(currenttime){if(!jry_wb_test_is_pc())return;if(this.audio==undefined)return undefined;return (currenttime==undefined?this.audio.currentTime:(this.audio.currentTime=currenttime));};this.status=function(status){if(!jry_wb_test_is_pc())return;if(this.audio==undefined)return undefined;return status==undefined?(!this.audio.paused):(status?this.audio.play():this.audio.pause());};this.break=function(){if(!jry_wb_test_is_pc())return;this.passive=true;this.status(false);this.save();};this.continue=function(){if(!jry_wb_test_is_pc())return;this.backup();this.passive=false;if(this.playing!=null)this.beautiful.do_reply_count(this.playing.cycle);this.status(this.playing_status);};};<?php } ?>function  jry_wb_beautiful_alert_function() {this.old_onmousewheel=function(){};this.old_onkeyup=function(){};};jry_wb_beautiful_alert_function.prototype.frame=function(msgtitle,width,height,x,y,important){this.old_onmousewheel=window.onmousewheel;if(document.addEventListener)document.removeEventListener('DOMMouseScroll',window.onmousewheel);window.onmousewheel=function(){};if(important==undefined)important=false;this.bgObj = document.createElement("div");this.bgObj.onmousewheel=function(event){ return false;};this.bgObj.classList.add('jry_wb_beautiful_alert_background_div');this.bgObj.style.zIndex=important?'10001':'9999';document.body.appendChild(this.bgObj); this.msgObj = document.createElement("div") ;this.msgObj.classList.add('jry_wb_beautiful_alert_message_div'); this.msgObj.style.top = y; this.msgObj.style.left = x; this.msgObj.style.width = width;this.msgObj.style.height = height;this.msgObj.style.zIndex=important?'10001':'9999';document.body.appendChild(this.msgObj); var title = document.createElement("div"); title.classList.add('jry_wb_beautiful_alert_title'); title.style="overflow:hidden;";title.align="center";title.style.width = width;if(msgtitle) title.innerHTML = msgtitle; else title.innerHTML="系统提示";this.msgObj.appendChild(title); bgObj = null;return title;};jry_wb_beautiful_alert_function.prototype.close=function(){document.body.removeChild(this.bgObj); document.body.removeChild(this.msgObj);window.onmousewheel=this.old_onmousewheel;window.onkeyup=this.old_onkeyup;if(document.addEventListener)document.addEventListener('DOMMouseScroll',window.onmousewheel,false);jry_wb_beautiful_scroll_run_flag=false;};jry_wb_beautiful_alert_function.prototype.prompt=function(msgtitle,func){this.frame(msgtitle,400,200,(document.body.clientWidth-400)/2,(document.body.clientHeight-400)/2);var txt = document.createElement("input");this.msgObj.appendChild(txt);txt.classList.add("jry_wb_beautiful_alert_text");var button = document.createElement("div");this.msgObj.appendChild(button); button.classList.add("jry_wb_beautiful_alert_button");button.style="width:100%;button:0px;text-align:center;";var confirm = document.createElement("input");button.appendChild(confirm); confirm.classList.add("jry_wb_button","jry_wb_button_size_small","jry_wb_color_ok");confirm.type='button'; confirm.value="确认"; confirm.style.bottom = 0;confirm.onclick=(event)=>{if(txt.value!='')func(txt.value);else jry_wb_beautiful_right_alert.alert('未执行操作',2000,'auto');document.body.removeChild(confirm.parentNode.parentNode.previousSibling); document.body.removeChild(confirm.parentNode.parentNode);window.onmousewheel=this.old_onmousewheel;if(document.addEventListener)document.addEventListener('DOMMouseScroll',window.onmousewheel,false);jry_wb_beautiful_scroll_run_flag=false;};this.msgObj.onmousewheel=function(event){ return false;};};jry_wb_beautiful_alert_function.prototype.check=function(msgtitle,funcy,funcn,wordy,wordn){if(wordy==null)wordy='确定';if(wordn==null)wordn='取消';this.frame(msgtitle,400,200,(document.body.clientWidth-400)/2,(document.body.clientHeight-400)/2,true);var button = document.createElement("div");this.msgObj.appendChild(button);button.classList.add("jry_wb_beautiful_alert_button");button.style="width:100%;button:0px;text-align:center;"; var confirm = document.createElement("input"); confirm.type="button"; confirm.value=wordy; confirm.style.bottom = 0;confirm.onclick=(event)=>{document.body.removeChild(event.target.parentNode.parentNode.previousSibling); document.body.removeChild(event.target.parentNode.parentNode); window.onmousewheel=this.old_onmousewheel;if(document.addEventListener)document.addEventListener('DOMMouseScroll',window.onmousewheel,false);jry_wb_beautiful_scroll_run_flag=false;funcy();};confirm.classList.add("jry_wb_button","jry_wb_button_size_small","jry_wb_color_ok");button.appendChild(confirm);  confirm = null;var confirm = document.createElement("input");button.appendChild(confirm); confirm.type="button"; confirm.value=wordn; confirm.style.bottom = 0;confirm.onclick=(event)=>{document.body.removeChild(event.target.parentNode.parentNode.previousSibling); document.body.removeChild(event.target.parentNode.parentNode);window.onmousewheel=this.old_onmousewheel;if(document.addEventListener)document.addEventListener('DOMMouseScroll',window.onmousewheel,false);jry_wb_beautiful_scroll_run_flag=false;funcn();};confirm.classList.add("jry_wb_button","jry_wb_button_size_small","jry_wb_color_error");confirm = null;msgbutton = null;this.msgObj.onmousewheel=function(event){ return false;};};jry_wb_beautiful_alert_function.prototype.alert=function(msgtitle,msgbody,func){this.frame(msgtitle,400,200,(document.body.clientWidth-400)/2,(document.body.clientHeight-400)/2,true);var txt = document.createElement("div");this.msgObj.appendChild(txt);txt.classList.add("jry_wb_beautiful_alert_text");txt.innerHTML=msgbody; txt = null;var button = document.createElement("div");this.msgObj.appendChild(button);  button.classList.add("jry_wb_beautiful_alert_button");button.style="width:100%;button:0px;text-align:center;"; var confirm = document.createElement("input");button.appendChild(confirm); confirm.setAttribute("type","button"); confirm.setAttribute("value","确认"); confirm.style.bottom = 0;this.old_onkeyup=window.onkeyup;window.onkeyup=function(e){if (!e) e = window.event;var keycode=(e.keyCode||e.which);if(keycode==jry_wb_keycode_enter)confirm.onclick(e);return false;};confirm.onclick=(event)=>{document.body.removeChild(confirm.parentNode.parentNode.previousSibling); document.body.removeChild(confirm.parentNode.parentNode);window.onmousewheel=this.old_onmousewheel;if(document.addEventListener)document.addEventListener('DOMMouseScroll',window.onmousewheel,false);jry_wb_beautiful_scroll_run_flag=false;window.onkeyup=this.old_onkeyup;if(typeof func==='function')func();};confirm.classList.add("jry_wb_button","jry_wb_button_size_small","jry_wb_color_ok");this.msgObj.onmousewheel=function(event){ return false;};};jry_wb_beautiful_alert_function.prototype.open=function(msgtitle,width,height,url,func){var title = this.frame(msgtitle,width,height,(document.body.clientWidth-width)/2,(document.body.clientHeight-height)/2);var txt = document.createElement("iframe"); txt.setAttribute("src",url);txt.setAttribute("seamless",'seamless');txt.setAttribute("frameborder",'0');txt.setAttribute("width",'100%');txt.style.width = height-title.getBoundingClientRect().top;this.msgObj.appendChild(txt);jry_wb_beautiful_right_alert.alert('加载内联页面中，请稍等',1000,'auto','warn');jry_wb_loading_on();txt.onload=function(){jry_wb_beautiful_right_alert.alert('加载内联页面完毕',500,'auto','ok');jry_wb_loading_off();window.onresize();};txt = null; var confirm = document.createElement("button");title.appendChild(confirm); confirm.type="button"; confirm.innerHTML="关闭"; confirm.style='float:right;margin-right:20px;';confirm.onclick=(event)=>{document.body.removeChild(confirm.parentNode.parentNode.previousSibling); document.body.removeChild(confirm.parentNode.parentNode);window.onmousewheel=this.old_onmousewheel;if(document.addEventListener)document.addEventListener('DOMMouseScroll',window.onmousewheel,false);jry_wb_beautiful_scroll_run_flag=false;if(typeof func==='function')func();};confirm.classList.add("jry_wb_button","jry_wb_button_size_small","jry_wb_color_normal");new jry_wb_beautiful_scroll(this.msgObj);};jry_wb_beautiful_alert_function.prototype.openvideo=function(msgtitle,width,height,url,func,show_close_button){if(show_close_button==null || typeof show_close_button!="function")show_close_button=function(){ return true;};var title = this.frame(msgtitle,width,height,(document.body.clientWidth-width)/2,(document.body.clientHeight-height)/2);var div = document.createElement("div"); this.msgObj.appendChild(div);div.style="width:100%;margin:0;padding:0;overflow-y:scroll;overflow-x:hidden;";div.style.height = height-title.clientHeight;div.align='center';var video = document.createElement("video");div.appendChild(video);video.style='height:100%;width:100%;';video.src = url;var timer=setInterval(function(){ratio=video.videoHeight/video.videoWidth;if(!isNaN(ratio)){clearInterval(timer);maxwidth=width;maxheight=height-title.clientHeight;height=maxwidth*ratio;width=maxheight/ratio;if(height>maxheight){div.style.height=maxheight;div.style.width=maxheight/ratio;div.style.paddingLeft=(maxwidth-(maxheight/ratio))/2;}if(width>maxwidth){div.style.width=maxwidth;div.style.height=maxwidth*ratio;div.style.paddingLeft=0;}}},400);video.ontimeupdate=function(){if(show_close_button(video)){if(title.getElementsByTagName("button").length!=0)return;var confirm = document.createElement("button");title.appendChild(confirm);confirm.type="button"; confirm.innerHTML="关闭"; confirm.style='float:right;margin-right:20px;';confirm.onclick=(event)=>{jry_wb_midia_control_all.onpause(video);document.body.removeChild(confirm.parentNode.parentNode.previousSibling); document.body.removeChild(confirm.parentNode.parentNode);window.onmousewheel=this.old_onmousewheel;if(document.addEventListener)document.addEventListener('DOMMouseScroll',window.onmousewheel,false);jry_wb_beautiful_scroll_run_flag=false;if(typeof func==='function')func(video);};confirm.classList.add("jry_wb_button","jry_wb_button_size_small","jry_wb_color_normal");  }};video.ontimeupdate();var video_body = new jry_wb_beautiful_video(video);video_body.body.style.height = height-title.clientHeight;this.msgObj.onmousewheel=function(event){ return false;};new jry_wb_beautiful_scroll(this.msgObj);};jry_wb_beautiful_alert_function.prototype.openpicture=function(msgtitle,width,height,url){var title = this.frame(msgtitle,width,height,(document.body.clientWidth-width)/2,(document.body.clientHeight-height)/2);var div = document.createElement("div"); this.msgObj.appendChild(div);div.style="width:100%;margin:0;padding:0;overflow:hidden;";div.align='center';var txt = document.createElement("img");txt.style.maxWidth='100%';txt.onload=function(){window.onresize();if(txt.naturalWidth<width*0.2)jry_wb_beautiful_right_alert.alert('使用shift+滚轮缩放<br>ctrl+0恢复原尺寸',5000,'auto');};txt.src=url;div.appendChild(txt);var confirm=document.createElement("button"); title.appendChild(confirm);confirm.type="button"; confirm.innerHTML="关闭"; confirm.style='float:right;margin-right:20px;';confirm.onclick=(event)=>{document.body.removeChild(confirm.parentNode.parentNode.previousSibling); document.body.removeChild(confirm.parentNode.parentNode);window.onmousewheel=this.old_onmousewheel;if(document.addEventListener)document.addEventListener('DOMMouseScroll',window.onmousewheel,false);jry_wb_beautiful_scroll_run_flag=false;jry_wb_set_shortcut([jry_wb_keycode_control,jry_wb_keycode_0],function(){});if(typeof func==='function')func();};confirm.classList.add("jry_wb_button","jry_wb_button_size_small","jry_wb_color_normal");new jry_wb_beautiful_scroll(this.msgObj);old_onwheel=this.msgObj.onmousewheel;this.msgObj.onmousewheel=(e)=>{e=e||window.event;if(e.shiftKey){txt.style.width=Math.max(10,txt.clientWidth+(e.deltaY||e.detail*50)/10);jry_wb_set_shortcut([jry_wb_keycode_control,jry_wb_keycode_0],function(){div.style.width="100%";div.style.margin="0";txt.style.maxWidth='100%';txt.style.width=txt.naturalWidth;title.style.top=0;div.style.top=0;});}else{old_onwheel(e);}return false;};if(this.msgObj.addEventListener)this.msgObj.addEventListener('DOMMouseScroll',this.msgObj.onmousewheel,false);};var jry_wb_beautiful_alert=new jry_wb_beautiful_alert_function();function jry_wb_beautiful_music(audio,area,list,yuandi){audio.removeAttribute("controls");audio.next=false;var body=document.createElement("div") ;if(yuandi)audio.parentElement.insertBefore(body,audio);else area.appendChild(body);body.classList.add('jry_wb_beautiful_music_body');this.list_area = null;var bg_pic=document.createElement("div");body.appendChild(bg_pic);bg_pic.classList.add('picture');var bg_pic_jiao=document.createElement("div");body.appendChild(bg_pic_jiao);bg_pic_jiao.classList.add('picture_jiao','jry_wb_icon');var mode=document.createElement("div");body.appendChild(mode);mode.classList.add('picture_mode');mode.innerHTML="一遍";var controls=document.createElement("div");body.appendChild(controls);controls.classList.add('controls');var start_button=document.createElement("div");controls.appendChild(start_button);start_button.classList.add('start_button','jry_wb_icon','jry_wb_icon_start');start_button.onclick=function() { if(audio.ended)audio.currentTime = 0;if(audio.paused)audio.play();else audio.pause();} ;var progress_bar= new jry_wb_progress_bar(controls,"65%",audio.currentTime/audio.duration,parseInt(audio.currentTime)+"/"+parseInt(audio.duration),function(x){audio.currentTime = x*audio.duration;},function(x){progress_bar.span.innerText = parseInt(x*audio.duration);},"progress_bar",'',true,false,'ok');progress_bar.progress_body.style.height="20px";var volume_button = document.createElement("div");controls.appendChild(volume_button);volume_button.classList.add('volume_button','jry_wb_icon','jry_wb_icon_sound_on');volume_button.onclick = function(){if(audio.muted){audio.muted = false;volume_button.classList.remove('jry_wb_icon_sound_off');volume_button.classList.add('jry_wb_icon_sound_on');}else{audio.muted = true;volume_button.classList.remove('jry_wb_icon_sound_on');volume_button.classList.add('jry_wb_icon_sound_off');}};var vioce_bar= new jry_wb_progress_bar(controls,"10%",audio.volume,parseInt(audio.volume*100)+"%",function(x){if(x!=0){audio.muted = false;volume_button.classList.remove('jry_wb_icon_sound_off');volume_button.classList.add('jry_wb_icon_sound_on');}vioce_bar.update(audio.volume = x,parseInt(audio.volume*1000)/10+"%");},function(x){vioce_bar.span.innerText = parseInt(x*100)+"%";},"voice_bar",'',false,true);vioce_bar.set_mouse_wheel(function(delta){vioce_bar.update(audio.volume+=delta*0.001,parseInt(audio.volume*1000)/10+"%");vioce_bar.span.innerText = parseInt(audio.volume*1000)/10+"%";});vioce_bar.progress_body.style.height="100px";var old_onmouseover=vioce_bar.progress_body.onmouseover;var old_onmouseout=vioce_bar.progress_body.onmouseout;vioce_bar.progress_body.onmouseover=volume_button.onmouseover = function(){vioce_bar.progress_body.style.display="unset";old_onmouseover();};vioce_bar.progress_body.onmouseout=volume_button.onmouseout = function(){vioce_bar.progress_body.style.display="none";old_onmouseout();};this.reply_count = 0;var cycle_button = document.createElement("div");controls.appendChild(cycle_button);cycle_button.classList.add("cycle_button","jry_wb_icon","jry_wb_icon_error");cycle_button.onclick=()=>{this.reply_count++;this.reply_count%=4;this.cycle_button_update();};if(list==false)body.style.height="100px";else{ this.list_area=document.createElement("div");body.appendChild(this.list_area);this.list_area.className='list_area';this.list_area.appendChild(this.lyric_area = document.createElement("div"));this.lyric_area.classList.add('lyric');this.lyric_area.style.display='none';var lyric_button = document.createElement("div");controls.appendChild(lyric_button);lyric_button.classList.add("lyric_button","jry_wb_icon","jry_wb_icon_lyric");lyric_button.onclick=()=>{this.reply_count++;this.reply_count%=4;this.cycle_button_update();};lyric_button.onclick=()=>{if(this.lyric_area.style.display==''){this.lyric_area.style.display='none';if(typeof this.song_list_area!='undefined')this.song_list_area.style.display='',lyric_button.classList.add('jry_wb_icon_lyric'),lyric_button.classList.remove('jry_wb_icon_songlist');this.beautiful_scroll.scrollto(0,0);}else{this.lyric_area.style.display='';if(typeof this.song_list_area!='undefined')this.song_list_area.style.display='none',lyric_button.classList.remove('jry_wb_icon_lyric'),lyric_button.classList.add('jry_wb_icon_songlist');this.beautiful_scroll.scrollto(0,(this.last_lyric_highlight==undefined?0:this.last_lyric_highlight.offsetTop)-this.list_area.clientHeight/3);}};} this.cycle_button_update=()=>{if(this.reply_count==0)cycle_button.classList.remove('jry_wb_icon_circle1','jry_wb_icon_circle_all','jry_wb_icon_random'),cycle_button.classList.add('jry_wb_icon_error'),mode.innerHTML="一遍";else if(this.reply_count==1)cycle_button.classList.remove('jry_wb_icon_error','jry_wb_icon_circle_all','jry_wb_icon_random'),cycle_button.classList.add('jry_wb_icon_circle1'),mode.innerHTML="单曲";else if(this.reply_count==2)cycle_button.classList.remove('jry_wb_icon_circle1','jry_wb_icon_error','jry_wb_icon_random'),cycle_button.classList.add('jry_wb_icon_circle_all'),mode.innerHTML="全部";else if(this.reply_count==3)cycle_button.classList.remove('jry_wb_icon_circle1','jry_wb_icon_circle_all','jry_wb_icon_error'),cycle_button.classList.add('jry_wb_icon_random'),mode.innerHTML="随机";};audio.onprogress=function(){var loaded=0;for(var i=0;i<audio.buffered.length;i++)if(audio.buffered.start(i)<audio.currentTime&&audio.currentTime<audio.buffered.end(i))loaded=audio.buffered.end(i);progress_bar.update_buttom(loaded/audio.duration);};audio.ontimeupdate=()=>{audio.onprogress();progress_bar.update(audio.currentTime/audio.duration,parseInt(audio.currentTime)+"/"+parseInt(audio.duration));var song=null,lyric=null;if(this.song_list!=null)if((song=this.song_list.find(function(a){return audio.src==a.music_url}))!=null&&song.lyric!=null&&song.lyric.length!=undefined)for(var i=0,lyric=song.lyric[i];i<song.lyric.length&&(i+1==song.lyric.length||song.lyric[i+1].t<audio.currentTime);i++,lyric=song.lyric[i]);if(lyric!=undefined&&lyric.d!=undefined){if(lyric.d.className.includes('active'))return;if(this.last_lyric_highlight!=undefined)this.last_lyric_highlight.classList.remove('active');(this.last_lyric_highlight=lyric.d).classList.add('active');if(this.lyric_area.style.display=='')this.beautiful_scroll.scrollto(0,(this.last_lyric_highlight.offsetTop)-this.list_area.clientHeight/3);}};audio.onplay=function(){start_button.classList.remove('jry_wb_icon_start');start_button.classList.add("jry_wb_icon_pause");jry_wb_midia_control_all.onplay(audio);if(this.song_list!=null){var i=parseInt(this.lastone.value);this.set_background_picture(this.song_list[i].pic_url,this.song_list[i].type);}};audio.onabort=()=>{var reload_cnt=0;setTimeout(()=>{if(audio.readyState==0){var timer=setInterval(()=>{if(audio.readyState==0){reload_cnt++;if(reload_cnt>=2){audio.next=true;audio.onpause();reload_cnt=0;}else audio.load();}else{audio.play();reload_cnt=0;clearInterval(timer);}},1000);}},500);};audio.onpause=()=>{start_button.classList.remove('jry_wb_icon_pause');start_button.classList.add("jry_wb_icon_start");if(this.reply_count==1&&(audio.ended||audio.next))audio.play();if(this.reply_count==2&&(audio.ended||audio.next)&&(this.song_list!=null)){if(this.lastone.nextElementSibling!=null){var target = this.lastone.nextElementSibling;var i = parseInt(target.value);this.set_background_picture(this.song_list[i].pic_url,this.song_list[i].type);this.type=this.song_list[i].type==undefined?'':this.song_list[i].type;this.audio.src = this.song_list[i].music_url;this.audio.play();if(this.lastone!=null)this.lastone.classList.remove('active');target.classList.add('active');this.lyric_area.innerHTML='';this.show_lyric(this.song_list[i].lyric);this.lastone = target;}else{var target = this.lastone.parentNode.children[0];var i = parseInt(target.value);this.set_background_picture(this.song_list[i].pic_url,this.song_list[i].type);this.type=this.song_list[i].type==undefined?'':this.song_list[i].type;this.audio.src = this.song_list[i].music_url;this.audio.play();if(this.lastone!=null)this.lastone.classList.remove('active');target.classList.add('active');this.lyric_area.innerHTML='';this.show_lyric(this.song_list[i].lyric);this.lastone = target;}}if(this.reply_count==3&&(audio.ended||audio.next)&&(this.song_list!=null)){var target = this.lastone.parentNode.children[parseInt(Math.random()*this.lastone.parentNode.children.length)];var i = parseInt(target.value);this.set_background_picture(this.song_list[i].pic_url,this.song_list[i].type);this.type=this.song_list[i].type==undefined?'':this.song_list[i].type;this.audio.src = this.song_list[i].music_url;this.audio.play();if(this.lastone!=null)this.lastone.classList.remove('active');target.classList.add('active');this.lyric_area.innerHTML='';this.show_lyric(this.song_list[i].lyric);this.lastone = target;}jry_wb_midia_control_all.onpause(audio);audio.next=false;};window.onresize();this.body = body;this.audio = audio;this.bg_pic_jiao = bg_pic_jiao;this.bg_pic = bg_pic;this.cycle_button = cycle_button;this.mode = mode;this.vioce_bar = vioce_bar;}jry_wb_beautiful_music.prototype.update_volume_bar = function(){this.vioce_bar.update(this.audio.volume,parseInt(this.audio.volume*100)+"%");};jry_wb_beautiful_music.prototype.do_reply_count = function(reply_count){if(reply_count==null)return this.reply_count;this.reply_count = reply_count;this.reply_count%=4;this.cycle_button_update();};jry_wb_beautiful_music.prototype.set_background_picture=function(url,type){if(type=='qq')this.bg_pic_jiao.classList.remove('jry_wb_icon_163_music','jry_wb_icon_music'),this.bg_pic_jiao.classList.add('jry_wb_icon_qq_music'),this.bg_pic_jiao.style.color="#02B053",this.bg_pic_jiao.style.background="#F8C913",this.bg_pic_jiao.style.borderRadius='10px';else if(type=='163'||type=='wangyi')this.bg_pic_jiao.classList.remove('jry_wb_icon_qq_music','jry_wb_icon_music'),this.bg_pic_jiao.classList.add('jry_wb_icon_163_music'),this.bg_pic_jiao.style.color="#D81E06",this.bg_pic_jiao.style.background="",this.bg_pic_jiao.style.borderRadius=0;else this.bg_pic_jiao.classList.remove('jry_wb_icon_163_music','jry_wb_icon_qq_music'),this.bg_pic_jiao.classList.add('jry_wb_icon_music'),this.bg_pic_jiao.style.color="#0F88EB",this.bg_pic_jiao.style.background="",this.bg_pic_jiao.style.borderRadius=0;this.bg_pic.style='background:url("'+(url==''?'':url)+'")';this.bg_pic.style.backgroundSize='cover';};jry_wb_beautiful_music.prototype.show_lyric=function(lyric){if(typeof lyric!='undefined')for(let j=0,m=lyric.length;j<m;j++)if(lyric[j].w!=''&&typeof lyric[j].w!='undefined'){var one=document.createElement("div");this.lyric_area.appendChild(one);one.classList.add('one');one.innerHTML=lyric[j].w;one.onclick=()=>{this.audio.currentTime=lyric[j].t};lyric[j].d=one;}};jry_wb_beautiful_music.prototype.push_song_list=function(list,highlighturl){if(list!=null)this.song_list = list;if(this.song_list==null)return false;if(this.list_area==null)return false;if(this.song_list_area==undefined){this.list_area.appendChild(this.song_list_area = document.createElement("div"));this.song_list_area.classList.add('song');}else this.song_list_area.innerHTML='';for(var i = 0,n = this.song_list.length;i<n;i++){var one = document.createElement("div");this.song_list_area.appendChild(one);one.classList.add('one');one.innerHTML = this.song_list[i].name;one.value=i;one.onclick=(event)=>{if (!event)var event = window.event;var i = parseInt(event.target.value);this.set_background_picture(this.song_list[i].pic_url,this.song_list[i].type);this.audio.src = this.song_list[i].music_url;this.audio.play();if(this.lastone!=null)this.lastone.classList.remove('active');event.target.classList.add('active');this.lastone = event.target;this.type=this.song_list[i].type==undefined?'':this.song_list[i].type;this.lyric_area.innerHTML='';this.show_lyric(this.song_list[i].lyric);};if(highlighturl==this.song_list[i].music_url&&highlighturl!=undefined&&this.song_list[i].music_url!=undefined){one.classList.add('active'),this.lastone = one;this.lyric_area.innerHTML='';this.show_lyric(this.song_list[i].lyric);}}if(this.beautiful_scroll==null)this.beautiful_scroll=new jry_wb_beautiful_scroll(this.list_area);};function jry_wb_beautiful_right_alert_function() {this.inited=false;this.init=function() {if (this.inited) return ;this.bgObj = document.createElement("div");document.body.appendChild(this.bgObj) ; this.bgObj.className='jry_wb_beautiful_alert';this.inited = true;};jry_wb_add_onload (()=>{this.init();});this.alert = function(message,time,width,type) {if (!this.inited) return jry_wb_add_onload(()=>{this.alert(message,time,width,type);});time = time==null?2000:time;width = width==null?'auto':width;var one = document.createElement ("div");this.bgObj.appendChild(one); one.classList.add('jry_wb_beautiful_alert_one','jry_wb_font_normal_size');if(type=='error')one.classList.add('jry_wb_color_error');else if(type=='ok')one.classList.add('jry_wb_color_ok');else if(type=='warn') one.classList.add('jry_wb_color_warn');else one.classList.add('jry_wb_color_normal');one.innerHTML=message;one.style.width=width;one.onclick=function(){one.parentNode.removeChild(one)} ;setTimeout(function(){if(one.parentNode!=null)one.parentNode.removeChild(one)},time) ;}}var jry_wb_beautiful_right_alert= new jry_wb_beautiful_right_alert_function;var jry_wb_beautiful_scroll_run_flag=false;function jry_wb_beautiful_scroll(area,absolute,move,x_switch){if(absolute==undefined)absolute=false;if(move==undefined)move=false;if(x_switch==undefined)x_switch=false;var timer1=null;var timer3=null;var timer4=null;area.style.overflow='hidden';var top_toolbar=document.getElementsByClassName('jry_wb_top_toolbar')[0];top_toolbar={'clientHeight':0};var arae_old_onmouseout=area.onmouseout;var arae_old_onmouseover=area.onmouseover;area.onmouseover=function(){var h=get_all_child_height();if(parseInt(area.clientHeight)>=h)return;jry_wb_beautiful_scroll_run_flag=true;if(typeof arae_old_onmouseover=='function')arae_old_onmouseover();};area.onmouseout=function(){jry_wb_beautiful_scroll_run_flag=false;if(typeof arae_old_onmouseout=='function')arae_old_onmouseout();};var jry_wb_scroll_body_y=document.createElement("div");area.appendChild(jry_wb_scroll_body_y);jry_wb_scroll_body_y.style.position='absolute';jry_wb_scroll_body_y.style.right='0';jry_wb_scroll_body_y.style.height=area.clientHeight;jry_wb_scroll_body_y.style.top=Math.max(0,top_toolbar.clientHeight);jry_wb_scroll_body_y.style.opacity='0';jry_wb_scroll_body_y.classList.add('jry_wb_beautiful_scroll_body');var jry_wb_scroll_body_x=document.createElement("div");area.appendChild(jry_wb_scroll_body_x);jry_wb_scroll_body_x.style.position='absolute';jry_wb_scroll_body_x.style.left='0';jry_wb_scroll_body_x.style.width=area.clientWidth-jry_wb_scroll_body_y.clientWidth;jry_wb_scroll_body_x.style.bottom='0';jry_wb_scroll_body_x.style.opacity='0';jry_wb_scroll_body_x.classList.add('jry_wb_beautiful_scroll_body');setTimeout(function(){jry_wb_scroll_body_y.style.transitionDuration='1s';jry_wb_scroll_body_x.style.transitionDuration='1s';},1000);if(move)jry_wb_scroll_body_y.style.zIndex='10000';var jry_wb_scroll_kuai_y=document.createElement("div");jry_wb_scroll_body_y.appendChild(jry_wb_scroll_kuai_y);jry_wb_scroll_kuai_y.style.height=area.clientHeight/get_all_child_height()*parseInt(jry_wb_scroll_body_y.style.height);jry_wb_scroll_kuai_y.style.position='absolute';jry_wb_scroll_kuai_y.classList.add('jry_wb_beautiful_scroll_kuai');var jry_wb_scroll_kuai_x=document.createElement("div");jry_wb_scroll_body_x.appendChild(jry_wb_scroll_kuai_x);jry_wb_scroll_kuai_x.style.width=area.clientWidth/get_all_child_width()*parseInt(jry_wb_scroll_body_x.style.width);jry_wb_scroll_kuai_x.style.position='absolute';jry_wb_scroll_kuai_x.classList.add('jry_wb_beautiful_scroll_kuai');jry_wb_add_onresize(()=>{var h=get_all_child_height();var w=get_all_child_width();jry_wb_scroll_body_y.style.height=area.clientHeight;jry_wb_scroll_kuai_y.style.height=area.clientHeight/h*parseInt(jry_wb_scroll_body_y.style.height);jry_wb_scroll_body_x.style.width=area.clientWidth-jry_wb_scroll_body_y.clientWidth;jry_wb_scroll_kuai_x.style.width=area.clientWidth/w*parseInt(jry_wb_scroll_body_x.style.width);if(area.clientHeight>=h){if(get_scrolly()!=0)scrollto(0,0);for(var i=0,n=area.children.length;i<n;i++)area.children[i].setAttribute('yuan_top',area.children[i].offsetTop);}else{var yy=now_y;scrollto(undefined,0);for(var i=0,n=area.children.length;i<n;i++){if(area.children[i].getAttribute('yuan_top')==null)area.children[i].setAttribute('yuan_top',area.children[i].offsetTop);else area.children[i].setAttribute('yuan_top',area.children[i].offsetTop);}scrollto(undefined,yy);}if(area.clientHeight>=h){if(get_scrolly()!=0)scrollto(undefined,0);return;}});function get_all_child_height(){var ans=0;var ans2=0;for(var i=0,n=area.children.length;i<n;i++){if(area.children[i].getAttribute('yuan_top')==null)area.children[i].setAttribute('yuan_top',area.children[i].offsetTop);if(area.children[i]!=jry_wb_scroll_body_y&&area.children[i]!=jry_wb_scroll_body_x){ans+=parseInt(area.children[i].clientHeight);ans2=Math.max(ans2,area.children[i].clientHeight+parseFloat(area.children[i].getAttribute('yuan_top')));}}if(absolute)return ans2;return ans;}function get_all_child_width(){var ans=0;for(var i=0,n=area.children.length;i<n;i++)if(area.children[i]!=jry_wb_scroll_body_y&&area.children[i]!=jry_wb_scroll_body_x)ans=Math.max(ans,area.children[i].clientWidth);return ans;}var all_flag=false;var chaju=0;var old_body_style;jry_wb_scroll_body_y.onmouseover=function(){var h=get_all_child_height();if(parseInt(area.clientHeight)>=h)return;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;jry_wb_scroll_body_y.style.height=area.clientHeight;jry_wb_scroll_body_y.style.top=Math.max(0,top_toolbar.clientHeight);jry_wb_scroll_body_y.style.opacity=1;jry_wb_scroll_kuai_y.style.height=area.clientHeight/h*parseInt(jry_wb_scroll_body_y.style.height);jry_wb_scroll_kuai_y.style.top=Math.max(0,get_scrolly()/h*parseInt(jry_wb_scroll_body_y.style.height));if(move)jry_wb_right_tools.left(jry_wb_scroll_body_y.clientWidth);};jry_wb_scroll_body_y.onmouseout=function(){if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;timer1=setTimeout(function(){timer1=null;jry_wb_scroll_body_y.style.opacity=0;jry_wb_right_tools.right();},1000);};if(x_switch){jry_wb_scroll_body_x.onmouseover=function(){var w=get_all_child_width();if(parseInt(area.clientWidth)>=w)return;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;jry_wb_scroll_body_x.style.width=area.clientWidth-jry_wb_scroll_body_y.clientWidth;jry_wb_scroll_body_x.style.opacity=1;jry_wb_scroll_kuai_x.style.width=area.clientWidth/w*parseInt(jry_wb_scroll_body_x.style.width);jry_wb_scroll_kuai_x.style.left=Math.max(0,get_scrollx()/w*parseInt(jry_wb_scroll_body_x.style.width));};jry_wb_scroll_body_x.onmouseout=function(){if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer3!=null)clearInterval(timer3),timer3=null;if(timer4!=null)clearInterval(timer4),timer4=null;timer1=setTimeout(function(){timer1=null;jry_wb_scroll_body_x.style.opacity=0;},1000);};}var now_y=0;var now_x=0;function scrollto(x,y){if(!isNaN(y)){y=Math.max(0,Math.min(y,get_all_child_height()-area.clientHeight));now_y=y;for(var i=0,n=area.children.length;i<n;i++)if(area.children[i]!=jry_wb_scroll_body_y&&area.children[i]!=jry_wb_scroll_body_x){if(window.getComputedStyle(area.children[i],null).position=='absolute'||area.children[i].style.position=='absolute'){if(area.children[i].getAttribute('yuan_top')==null)area.children[i].setAttribute('yuan_top',area.children[i].offsetTop);area.children[i].style.top=area.children[i].yuan_top-y;}else{area.children[i].style.position='relative';area.children[i].style.top=-y;}}}if(!isNaN(x)&&x_switch){x=Math.max(0,Math.min(x,get_all_child_width()-area.clientWidth));now_x=x;for(var i=0,n=area.children.length;i<n;i++)if(area.children[i]!=jry_wb_scroll_body_y&&area.children[i]!=jry_wb_scroll_body_x){area.children[i].style.position='relative';area.children[i].style.left=-x;}}}this.scrollto=scrollto;function get_scrolly(){if(isNaN(now_y))return 0;return now_y;}function get_scrollx(){if(isNaN(now_x))return 0;return now_x;}var last_y=0;var last_x=0;area.addEventListener("touchstart",(e)=>{jry_wb_beautiful_scroll_run_flag=true;document.body.style.overflowY='hidden';if(typeof e=='undefined'||e==undefined)e=window.event;if(e.touches!=null&&e.touches.length==1)e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX;else if(e.changedTouches!=null&&e.changedTouches.length==1)e.clientY=e.changedTouches[0].clientY,e.clientX=e.changedTouches[0].clientX;last_y=e.clientY;last_x=e.clientX;},false);area.addEventListener("touchmove",(e)=>{jry_wb_beautiful_scroll_run_flag=true;document.body.style.overflowY='hidden';if(typeof e=='undefined'||e==undefined)e=window.event;if(e.touches!=null&&e.touches.length==1)e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX;else if(e.changedTouches!=null&&e.changedTouches.length==1)e.clientY=e.changedTouches[0].clientY,e.clientX=e.changedTouches[0].clientX;area.onmousewheel({'deltaY':last_y-e.clientY,'deltaX':last_x-e.clientX});last_y=e.clientY;last_x=e.clientX;},false);area.addEventListener("touchend",(e)=>{document.body.style.overflowY='scroll';jry_wb_beautiful_scroll_run_flag=false;},false);area.onmousewheel=(e)=>{var h=get_all_child_height();var w=get_all_child_width();if(area.clientHeight>=h){if(get_scrolly()!=0)scrollto(undefined,0);return;}e=e||window.event;if(typeof e.preventDefault=='function')e.preventDefault();var dx=(e.deltaX||e.detail*50);var dy=(e.deltaY||0);scrollto(get_scrollx()+dx,get_scrolly()+dy);jry_wb_scroll_body_y.style.height=area.clientHeight-Math.max(0,top_toolbar.clientHeight-get_scrolly());jry_wb_scroll_body_y.style.top=Math.max(0,top_toolbar.clientHeight);jry_wb_scroll_kuai_y.style.height=area.clientHeight/h*parseInt(jry_wb_scroll_body_y.style.height);jry_wb_scroll_kuai_y.style.top=Math.max(0,get_scrolly()/h*parseInt(jry_wb_scroll_body_y.style.height));jry_wb_scroll_body_x.style.width=area.clientWidth-jry_wb_scroll_body_y.clientWidth;jry_wb_scroll_kuai_x.style.width=area.clientWidth/w*parseInt(jry_wb_scroll_body_x.style.width);jry_wb_scroll_kuai_x.style.left=Math.max(0,get_scrollx()/w*parseInt(jry_wb_scroll_body_x.style.width));if(dy!=0)jry_wb_scroll_body_y.style.opacity=1;if(dx!=0&&x_switch)jry_wb_scroll_body_x.style.opacity=1;if(move)jry_wb_right_tools.left(jry_wb_scroll_body_y.clientWidth);if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;timer1=setTimeout(function(){timer1=null;jry_wb_scroll_body_y.style.opacity=0;jry_wb_scroll_body_x.style.opacity=0;jry_wb_right_tools.right();},1000);return false;};jry_wb_scroll_body_y.onclick=function(e){var h=get_all_child_height();if(area.clientHeight>=h)return;e=e||window.event;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer3!=null)clearInterval(timer3),timer3=null;if(timer4!=null)clearInterval(timer4),timer4=null;var mubiao=Math.max(0,Math.min((e.clientY-jry_wb_scroll_body_y.getBoundingClientRect().top)/area.clientHeight*h,h-area.clientHeight));;timer4=setInterval(function(){if(Math.abs(get_scrolly()-mubiao)<10){clearInterval(timer4);timer4=null;return ;}scrollto(undefined,get_scrolly()+((mubiao-get_scrolly())/400)*50);jry_wb_scroll_kuai_y.style.height=area.clientHeight/h*parseInt(jry_wb_scroll_body_y.style.height);jry_wb_scroll_kuai_y.style.top=Math.max(0,get_scrolly()/h*parseInt(jry_wb_scroll_body_y.style.height));},25);};jry_wb_scroll_body_x.onclick=function(e){var w=get_all_child_width();if(area.clientWidth>=w)return;e=e||window.event;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer3!=null)clearInterval(timer3),timer3=null;if(timer4!=null)clearInterval(timer4),timer4=null;var mubiao=Math.max(0,Math.min((e.clientX-jry_wb_scroll_body_x.getBoundingClientRect().left)/area.clientWidth*w,w-area.clientWidth));;timer3=setInterval(function(){if(Math.abs(get_scrollx()-mubiao)<10){clearInterval(timer3);timer3=null;return ;}scrollto(get_scrollx()+((mubiao-get_scrollx())/400)*50,undefined);jry_wb_scroll_kuai_x.style.left=Math.max(0,get_scrollx()/w*parseInt(jry_wb_scroll_body_x.style.width));},25);};if(area.addEventListener)area.addEventListener('DOMMouseScroll',area.onmousewheel,false);var start_down='';jry_wb_add_onmousemove(function(e){if(!all_flag)return ;if(start_down=='y'){var h=get_all_child_height();if(area.clientHeight>=h)return;e=e||window.event;scrollto(undefined,(e.clientY-jry_wb_scroll_body_y.getBoundingClientRect().top-chaju)/area.clientHeight*h);jry_wb_scroll_kuai_y.style.height=area.clientHeight/h*parseInt(jry_wb_scroll_body_y.style.height);jry_wb_scroll_kuai_y.style.top=Math.max(0,get_scrolly()/h*parseInt(jry_wb_scroll_body_y.style.height));}if(start_down=='x'&&x_switch){var w=get_all_child_width();if(area.clientWidth>=w)return;e=e||window.event;scrollto((e.clientX-jry_wb_scroll_body_x.getBoundingClientRect().left-chaju)/area.clientWidth*w,undefined);jry_wb_scroll_kuai_x.style.left=Math.max(0,get_scrollx()/w*parseInt(jry_wb_scroll_body_x.style.width));}if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer3!=null)clearInterval(timer3),timer3=null;if(timer4!=null)clearInterval(timer4),timer4=null;});jry_wb_scroll_kuai_y.onmousedown=function(e){start_down='y';all_flag=true;if(area.clientHeight>=get_all_child_height())return;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;e=e||window.event;chaju=e.clientY-jry_wb_scroll_kuai_y.getBoundingClientRect().top;old_body_style=document.body.style;document.body.style+='-webkit-user-select:none;-moz-user-select:none;-khtml-user-select: none;-ms-user-select: none;';area.onselectstart=function(){return false;};};if(x_switch)jry_wb_scroll_kuai_x.onmousedown=function(e){start_down='x';all_flag=true;if(area.clientWidth>=get_all_child_width())return;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;e=e||window.event;chaju=e.clientX-jry_wb_scroll_kuai_x.getBoundingClientRect().left;old_body_style=document.body.style;document.body.style+='-webkit-user-select:none;-moz-user-select:none;-khtml-user-select: none;-ms-user-select: none;';area.onselectstart=function(){return false;};};jry_wb_add_onmouseup(function(){if(start_down=='y')jry_wb_scroll_body_y.onmouseup();if(start_down=='x')jry_wb_scroll_body_x.onmouseup();});jry_wb_scroll_body_y.onmouseup=function(e){all_flag=false;document.body.style=old_body_style;jry_wb_scroll_body_y.onmouseout();area.onselectstart=function(){};};if(x_switch)jry_wb_scroll_body_x.onmouseup=function(e){all_flag=false;document.body.style=old_body_style;jry_wb_scroll_body_x.onmouseout();area.onselectstart=function(){};};this.get_all_child_height=get_all_child_height;this.get_all_child_width=get_all_child_width;this.jry_wb_scroll_body_y=jry_wb_scroll_body_y;this.jry_wb_scroll_body_x=jry_wb_scroll_body_x;}jry_wb_add_onload(function(){var timer1=null;var timer4=null;if(!jry_wb_test_is_pc())document.body.style.overflowX='hidden',document.body.style.overflowY='scroll';var jry_wb_scroll_body=document.createElement("div");document.body.appendChild(jry_wb_scroll_body);jry_wb_scroll_body.style.position='fixed';jry_wb_scroll_body.style.right='0';var top_toolbar=document.getElementsByClassName('jry_wb_top_toolbar')[0];if(top_toolbar==undefined)top_toolbar={'clientHeight':0};jry_wb_scroll_body.style.height=window.innerHeight-Math.max(0,top_toolbar.clientHeight-window.scrollY);jry_wb_scroll_body.style.top=Math.max(0,top_toolbar.clientHeight-window.scrollY);jry_wb_scroll_body.style.opacity='0';jry_wb_scroll_body.style.zIndex='9999';setTimeout(function(){jry_wb_scroll_body.style.transitionDuration='1s';},1000);jry_wb_scroll_body.classList.add('jry_wb_beautiful_scroll_body');var jry_wb_scroll_kuai=document.createElement("div");jry_wb_scroll_body.appendChild(jry_wb_scroll_kuai);jry_wb_scroll_kuai.style.position='fixed';jry_wb_scroll_kuai.style.height=window.innerHeight/document.body.offsetHeight*parseInt(jry_wb_scroll_body.style.height);jry_wb_scroll_kuai.style.top=Math.min(window.innerHeight-parseInt(jry_wb_scroll_kuai.style.height),Math.max(parseInt(jry_wb_scroll_body.style.top),window.scrollY/document.body.offsetHeight*parseInt(jry_wb_scroll_body.style.height)));jry_wb_scroll_kuai.classList.add('jry_wb_beautiful_scroll_kuai');jry_wb_add_onresize(function(){jry_wb_scroll_body.style.top=Math.max(0,top_toolbar.clientHeight-window.scrollY);;jry_wb_scroll_body.style.height=window.innerHeight-Math.max(0,top_toolbar.clientHeight-window.scrollY);});jry_wb_scroll_body.onmouseover=function(){if(window.innerHeight==document.body.offsetHeight)return;if(timer1!=null)clearTimeout(timer1),timer1=null;jry_wb_scroll_body.style.height=window.innerHeight-Math.max(0,top_toolbar.clientHeight-window.scrollY);jry_wb_scroll_kuai.style.height=window.innerHeight/document.body.offsetHeight*parseInt(jry_wb_scroll_body.style.height);jry_wb_scroll_body.style.opacity=1;jry_wb_right_tools.left(jry_wb_scroll_body.clientWidth);};var all_flag=false;var chaju=0;var old_body_style;jry_wb_scroll_body.onmouseout=function(){if(timer1!=null)clearTimeout(timer1),timer1=null;if(window.innerHeight==document.body.offsetHeight)return;timer1=setTimeout(function(){jry_wb_scroll_body.style.opacity=0;jry_wb_right_tools.right();timer1=null;},1000);};jry_wb_scroll_body.onclick=function(e){if(window.innerHeight==document.body.offsetHeight)return;e=e||window.event;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;var mubiao=e.clientY/window.innerHeight*document.body.offsetHeight;timer4=setInterval(function(){if(Math.abs(window.scrollY-mubiao)<100){clearInterval(timer4);timer4=null;return ;}window.scrollTo(window.scrollX,window.scrollY+((mubiao-window.scrollY)/400)*50);jry_wb_scroll_body.style.height=window.innerHeight-Math.max(0,top_toolbar.clientHeight-window.scrollY);jry_wb_scroll_body.style.top=Math.max(0,top_toolbar.clientHeight-window.scrollY);;jry_wb_scroll_kuai.style.height=window.innerHeight/document.body.offsetHeight*parseInt(jry_wb_scroll_body.style.height);jry_wb_scroll_kuai.style.top=Math.min(window.innerHeight-parseInt(jry_wb_scroll_kuai.style.height),Math.max(parseInt(jry_wb_scroll_body.style.top),window.scrollY/document.body.offsetHeight*parseInt(jry_wb_scroll_body.style.height)));},25);};jry_wb_add_onmousemove(function(e){if(!all_flag)return ;if(window.innerHeight==document.body.offsetHeight)return;e=e||window.event;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;window.scrollTo(window.scrollX,(e.clientY-chaju)/window.innerHeight*document.body.offsetHeight);jry_wb_scroll_body.style.height=window.innerHeight-Math.max(0,top_toolbar.clientHeight-window.scrollY);jry_wb_scroll_body.style.top=Math.max(0,top_toolbar.clientHeight-window.scrollY);;jry_wb_scroll_kuai.style.height=window.innerHeight/document.body.offsetHeight*parseInt(jry_wb_scroll_body.style.height);jry_wb_scroll_kuai.style.top=Math.min(window.innerHeight-parseInt(jry_wb_scroll_kuai.style.height),Math.max(parseInt(jry_wb_scroll_body.style.top),window.scrollY/document.body.offsetHeight*parseInt(jry_wb_scroll_body.style.height)));});jry_wb_scroll_kuai.onmousedown=function(e){all_flag=true;if(window.innerHeight==document.body.offsetHeight)return;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;e=e||window.event;chaju=e.clientY-jry_wb_scroll_kuai.getBoundingClientRect().top;old_body_style=document.body.style;document.body.style+='-webkit-user-select:none;-moz-user-select:none;-khtml-user-select: none;-ms-user-select: none;';};jry_wb_add_onmouseup(function(){all_flag=false;jry_wb_scroll_body.onmouseout();document.body.style=old_body_style;});jry_wb_scroll_kuai.onmouseup=function(e){all_flag=false;if(window.innerHeight==document.body.offsetHeight)return;if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearInterval(timer4),timer4=null;document.body.style=old_body_style;};jry_wb_scroll_kuai.onselectstart=function(){return false;};window.onmousewheel=function(e){if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer4!=null)clearTimeout(timer4),timer4=null;if(!jry_wb_test_is_pc())document.body.style.overflowX='hidden',document.body.style.overflowY='scroll';if(window.innerHeight==document.body.offsetHeight||jry_wb_beautiful_scroll_run_flag)return;e=e||window.event;if(e!=null&&jry_wb_test_is_pc())window.scrollTo(window.scrollX,window.scrollY+(e.deltaY||e.detail*50));jry_wb_scroll_body.style.height=window.innerHeight-Math.max(0,top_toolbar.clientHeight-window.scrollY);jry_wb_scroll_body.style.top=Math.max(0,top_toolbar.clientHeight-window.scrollY);jry_wb_scroll_kuai.style.height=window.innerHeight/document.body.offsetHeight*parseInt(jry_wb_scroll_body.style.height);jry_wb_scroll_kuai.style.top=Math.min(window.innerHeight-parseInt(jry_wb_scroll_kuai.style.height),Math.max(parseInt(jry_wb_scroll_body.style.top),window.scrollY/document.body.offsetHeight*parseInt(jry_wb_scroll_body.style.height)));jry_wb_scroll_body.style.opacity=1;jry_wb_right_tools.left(jry_wb_scroll_body.clientWidth);timer1=setTimeout(function(){jry_wb_scroll_body.style.opacity=0;jry_wb_right_tools.right();timer1=null;},1000);};if(!jry_wb_test_is_pc())jry_wb_add_onscroll(window.onmousewheel);document.addEventListener('DOMMouseScroll',window.onmousewheel,false);});function jry_wb_beautiful_video(video){var video_body = document.createElement("div");video.parentElement.insertBefore(video_body,video);video.parentElement.removeChild(video);video_body.appendChild(video);video_body.classList.add("jry_wb_beautiful_video_body");yuanshi_width=video.style.width==''?document.defaultView.getComputedStyle(video,null)['width']:video.style.width;yuanshi_width=(yuanshi_width==''?'100%':yuanshi_width);video_body.style.width='yuanshi_width';video.style.width="100%";video.setAttribute("controls","");if(jry_wb_test_is_pc()){video.removeAttribute("controls");var buttom_bar = document.createElement("div");video_body.appendChild(buttom_bar);buttom_bar.classList.add("jry_wb_beautiful_video_buttom_bar");buttom_bar.style.display='none';var start_button = document.createElement("div");buttom_bar.appendChild(start_button);start_button.classList.add("jry_wb_beautiful_video_button","jry_wb_icon","jry_wb_icon_start");var progress_bar = new jry_wb_progress_bar(buttom_bar,"50%",video.currentTime/video.duration,parseInt(video.currentTime)+"/"+parseInt(video.duration),function(x){video.currentTime = x*video.duration;},function(x){progress_bar.span.innerText = parseInt(x*video.duration);},"jry_wb_beautiful_video_progress_bar",'',true,false,'ok');var vioce_bar = new jry_wb_progress_bar(buttom_bar,"10%",video.volume,parseInt(video.volume*100)+"%",function(x){vioce_bar.update(video.volume = x,parseInt(video.volume*100)+"%");},function(x){vioce_bar.span.innerText = parseInt(x*100)+"%";},"jry_wb_beautiful_video_voice_bar",'',false);var full_button = document.createElement("div");buttom_bar.appendChild(full_button);full_button.classList.add("jry_wb_beautiful_video_button","jry_wb_icon");if(document.webkitIsFullScreen)full_button.classList.add("jry_wb_icon_full_screen_quit");else full_button.classList.add("jry_wb_icon_full_screen_enter");var ratio=video_body.clientWidth*video.videoHeight/video.videoWidth;var timer=setInterval(function(){ratio=video.videoHeight/video.videoWidth;if(!isNaN(ratio)){clearInterval(timer);buttom_bar.style.width=video_body.clientWidth;video_body.style.height=video_body.clientWidth*ratio;buttom_bar.style.top=video_body.clientHeight-buttom_bar.clientHeight;if(typeof window.onresize=='function')window.onresize();}},400);var timer2=null;video_body.onmousemove=function(){buttom_bar.style.display='';buttom_bar.style.opacity=1;if(document.webkitIsFullScreen){video_body.style.width=document.body.clientWidth;video_body.style.height=document.body.clientHeight;buttom_bar.style.top=video_body.clientHeight-buttom_bar.clientHeight;}else{buttom_bar.style.width=video_body.clientWidth;video_body.style.height=video_body.clientWidth*ratio;buttom_bar.style.top=video_body.clientHeight-buttom_bar.clientHeight;}};video_body.onmouseover = function(){buttom_bar.style.display='';buttom_bar.style.opacity=1;if(timer2!=null)clearInterval(timer2),timer2=null;timer2=setInterval(function(){ratio=video.videoHeight/video.videoWidth;if(parseFloat(buttom_bar.style.opacity)<=0.01){clearInterval(timer2);timer2=null;buttom_bar.style.display='none';}else buttom_bar.style.opacity=parseFloat(buttom_bar.style.opacity)-0.02;},100);if(document.webkitIsFullScreen){video_body.style.width=document.body.clientWidth;video_body.style.height=document.body.clientHeight;buttom_bar.style.top=video_body.clientHeight-buttom_bar.clientHeight;}else{buttom_bar.style.width=video_body.clientWidth;video_body.style.height=video_body.clientWidth*ratio;buttom_bar.style.top=video_body.clientHeight-buttom_bar.clientHeight;}video.removeAttribute("controls");if(video.ended)start_button.classList.add("jry_wb_icon_start"),start_button.classList.remove("jry_wb_icon_pause");};video_body.onmouseout = function(){if(timer2!=null)clearInterval(timer2),timer2=null;buttom_bar.style.display='none';};video_ontimeupdate=video.ontimeupdate;video.ontimeupdate = function(){video.onprogress();if( typeof video_ontimeupdate=="function")video_ontimeupdate(video);progress_bar.update(video.currentTime/video.duration,parseInt(video.currentTime)+"/"+parseInt(video.duration));};video.onprogress=function(){var loaded=0;for(var i=0;i<video.buffered.length;i++)if(video.buffered.start(i)<video.currentTime&&video.currentTime<video.buffered.end(i))loaded=video.buffered.end(i);progress_bar.update_buttom(loaded/video.duration);};video.onclick = start_button.onclick = function(){if(video.ended)video.currentTime = 0;if(video.paused)video.play();else video.pause();};video.onplay = function(){start_button.classList.add("jry_wb_icon_pause");start_button.classList.remove("jry_wb_icon_start");jry_wb_midia_control_all.onplay(video);};video.onpause = function(){start_button.classList.remove("jry_wb_icon_pause");start_button.classList.add("jry_wb_icon_start");jry_wb_midia_control_all.onpause(video);};full_button.onclick=function(){if(document.webkitIsFullScreen){full_button.classList.add("jry_wb_icon_full_screen_enter");full_button.classList.remove("jry_wb_icon_full_screen_quit");jry_wb_exit_full_screen();video_body.style.width=yuanshi_width;buttom_bar.style.width=video_body.clientWidth;video_body.style.height=video_body.clientWidth*ratio;buttom_bar.style.top=video_body.clientHeight-buttom_bar.clientHeight;video_body.style.background="";video_body.style.position='';video.style.position='';buttom_bar.style.position='';video_body.style.zIndex='';video.style.zIndex='';buttom_bar.style.zIndex='';}else{full_button.classList.add("jry_wb_icon_full_screen_quit");full_button.classList.remove("jry_wb_icon_full_screen_enter");jry_wb_launch_full_screen(document.documentElement);video_body.style.position='fixed';video_body.style.top=0;video_body.style.left=0;video_body.style.width=document.body.clientWidth;video_body.style.height=document.body.clientHeight;buttom_bar.style.width=video_body.clientWidth;buttom_bar.style.top=video_body.clientHeight-buttom_bar.clientHeight;video_body.style.background="#000";video_body.style.zIndex=100000;video.style.zIndex=100000;buttom_bar.style.zIndex=100000;}};document.addEventListener('webkitfullscreenchange',function(){if(document.webkitIsFullScreen){}else{full_button.classList.add("jry_wb_icon_full_screen_enter");full_button.classList.remove("jry_wb_icon_full_screen_quit");jry_wb_exit_full_screen();video_body.style.width=yuanshi_width;buttom_bar.style.width=video_body.clientWidth;video_body.style.height=video_body.clientWidth*ratio;buttom_bar.style.top=video_body.clientHeight-buttom_bar.clientHeight;video_body.style.background="";video_body.style.position='';video.style.position='';buttom_bar.style.position='';video_body.style.zIndex='';video.style.zIndex='';buttom_bar.style.zIndex='';}});}this.body = video_body;this.video = video;}jry_wb_beautiful_video.prototype.push_tanmu = function(text,top,type,color){var danmu_body = document.createElement("div");this.video.after(danmu_body);if(type=="up_down"){danmu_body.style.left = top;danmu_body.classList.add("jry_wb_beautiful_video_danmu_up_down");}else{danmu_body.style.top = top;danmu_body.classList.add("jry_wb_beautiful_video_danmu_left_right");}danmu_body.innerHTML = text;danmu_body.style.color = color;setTimeout(()=>{this.body.removeChild(danmu_body);},7000);};var jry_wb_cache=new function(){this.set=function(name,data,longtime,time){if(time==undefined)time=jry_wb_get_server_time();else if(typeof time=="number")time=new Date(time);if(longtime==null||longtime==undefined)longtime = true;if(longtime)localStorage.setItem(name,JSON.stringify({lasttime:time,data:data}));else  sessionStorage.setItem(name,JSON.stringify({lasttime:time,data:data}));};this.set_last_time=function(name,time,longtime){if(longtime==null)longtime = true;var data = jry_wb_cache.get(name);if(longtime)localStorage.setItem(name,JSON.stringify({lasttime:time,data:data}));else sessionStorage.setItem(name,JSON.stringify({lasttime:time,data:data}));};this.get=function(name){var buf = JSON.parse(localStorage.getItem(name));if(buf==null)buf = JSON.parse(sessionStorage.getItem(name));if(buf==null)return null;if(buf.data==null||( typeof buf.data=="object"&&buf.data.length==0))return null;return buf.data;};this.get_last_time=function(name,qiangzhi){if(qiangzhi)return '1926-08-17 00:00:00';var buf = JSON.parse(localStorage.getItem(name));if(buf==null)buf = JSON.parse(sessionStorage.getItem(name));if(buf==null)return '1926-08-17 00:00:00';if(buf.data==null||( typeof buf.data=="object"&&buf.data.length==0))return '1926-08-17 00:00:00';if(typeof buf.lasttime.to_time=='function')return buf.lasttime.to_time().s();else return new Date(buf.lasttime).s();};this.delete=function(name){localStorage.removeItem(name);sessionStorage.removeItem(name);};this.check_if_delete=function(key){return !(key=='background_music');};this.delete_all=function(){var background_music = jry_wb_cache.get('background_music');localStorage.clear();sessionStorage.clear();jry_wb_cache.set('background_music',background_music);};this.size=function(longtime){if(longtime==null)longtime = true;var count = 0;if(longtime)for(var i = 0;i<localStorage.length;i++)count+=localStorage.getItem(localStorage.key(i)).length+localStorage.key(i).length;else for(var i = 0;i<sessionStorage.length;i++)count+=sessionStorage.getItem(sessionStorage.key(i)).length+sessionStorage.key(i).length;return count;};};function jry_wb_color_to_string(color){var rgb=color.split(',');var r=parseInt(rgb[0].split('(')[1]);var g=parseInt(rgb[1]);var b=parseInt(rgb[2].split(')')[0]);var hex=""+((1<<24)+(r<<16)+(g<<8)+b).toString(16).slice(1);return hex;}var jry_wb_cookie = {set:function(key,val,time){var date = new Date();var expiresDays = time;date.setTime(date.getTime()+expiresDays*1000);if(jry_wb_test_domain_is_ip())document.cookie = key + "=" + escape(val) +";expires="+date.toGMTString()+";path=/;";else document.cookie = key + "=" + escape(val) +";expires="+date.toGMTString()+";path=/;domain=."+jry_wb_get_domain()+";";},get:function(key){var arrCookie=document.cookie.replace(/(^\s+)|(\s+$)/g,"").replace(/\s/g,"").split(";");var tips;for( var i = 0;i<arrCookie.length;i++){var arr = arrCookie[i].split("=");if(key==arr[0]){tips = arr[1];break;}}return tips;},delete:function(key){var date = new Date();date.setTime(date.getTime()-10000);document.cookie = key + "=v; expires =" +date.toGMTString();}};function jry_wb_copy_to_clipboard(s){if(window.clipboardData)window.clipboardData.setData('text',s);else{(function(s){document.oncopy = function(e){e.clipboardData.setData('text',s);e.preventDefault();document.oncopy = null;}})(s);document.execCommand('Copy');}}Date.prototype.s=function(){return this.getFullYear()+'-'+(this.getMonth()+1)+'-'+this.getDate()+' '+this.getHours()+':'+this.getMinutes()+':'+this.getSeconds();};Date.prototype.to_time=function(){return this;};<?php if(JRY_WB_FOLLOW_MOUTH_SPECIAL_FACT_SWITCH){ ?>function jry_wb_follow_mouth(div,config){var config = config;this.div = div;config.size = config.size*5+15;var objs = new Array(),N;var m={x:0,y:0};var center={x:100,y:100};var clientWidth = document.body.clientWidth-4;var clientHeight = document.body.clientHeight-4;N = 0;this.close = function(){this.switch = false;for( var i = 0;i<N;i++)if(objs[i]!=null&&objs[i].obj!=null&&objs[i].obj.parentNode!=null)objs[i].obj.parentNode.removeChild(objs[i].obj);N = 0;};this.reinit = function(){this.switch = true;setTimeout(()=>{this.mouth_move()},10);for( var i = 1;i<=360;i+=12)for( var j = 15;j<config.size;j+=5) {objs[N]={'obj':document.createElement("span"),'j':j,'x_pian':Math.sin(i*Math.PI/180),'y_pian':Math.cos(i*Math.PI/180),'x':0,'y':0};this.div.appendChild(objs[N].obj);objs[N].obj.className='jry_wb_mouth_spacial_fact';objs[N].obj.style.left=(objs[N].x = center.x+objs[N].x_pian)+'px';objs[N].obj.style.top=(objs[N].y = center.y+objs[N].y_pian)+'px';objs[N].obj.style.zIndex = config.size+10-j+15000;objs[N].x_pian = objs[N].j*objs[N].x_pian;objs[N].y_pian = objs[N].j*objs[N].y_pian;objs[N].pian=(objs[N].j/config.size)*(config.dou);N++;}};this.mouth_move = function(){var scrollTop = document.body.scrollTop==0?document.documentElement.scrollTop:document.body.scrollTop;var scrollLeft = document.body.scrollLeft==0?document.documentElement.scrollLeft:document.body.scrollLeft;var x = m.x+scrollLeft,y = m.y+scrollTop;center.x+=(x-center.x)/(config.speed);center.y+=(y-center.y)/(config.speed);var min_top = scrollTop,max_top = scrollTop+clientHeight;var min_left = scrollLeft,max_left = scrollLeft+clientWidth;for( var i = 0,n = objs.length;i<n;i++){objs[i].obj.style.left = Math.max(min_left,Math.min(max_left,(objs[i].x = Math.round(center.x+objs[i].x_pian+objs[i].pian*(center.x-x)))))+'px';objs[i].obj.style.top = Math.max(min_top,Math.min(max_top,(objs[i].y = Math.round(center.y+objs[i].y_pian+objs[i].pian*(center.y-y)))))+'px';}if(this.switch)setTimeout(()=>{this.mouth_move()},10);};setTimeout(()=>{if(!this.switch)return;clientWidth = document.body.clientWidth-4;clientHeight = document.body.clientHeight-4;},1000);jry_wb_add_onresize(()=>{if(!this.switch)return;clientWidth = document.body.clientWidth-4;clientHeight = document.body.clientHeight-4;});jry_wb_add_onmousemove((event)=>{if(!this.switch)return;if(event.touches)event = event.touches[0];else event = event;m.x = event.clientX;m.y = event.clientY;});jry_wb_add_onclick(()=>{if(!this.switch)return;for( var i = 0;i<N;i++){objs[i].obj.className='jry_wb_mouth_spacial_fact_onclick'};setTimeout(function(){for( var i = 0;i<N;i++){objs[i].obj.className='jry_wb_mouth_spacial_fact';}},100);});this.reinit();this.switch = true;}<?php } ?>function jry_wb_launch_full_screen (element){if (element.requestFullscreencreen)element.requestFullScreen();else if (element.mozRequestFullScreen)element.mozRequestFullScreen();else if (element.webkitRequestFullScreen)element.webkitRequestFullScreen();else if (element.msRequestFullScreen)element.msRequestFullScreen();}function jry_wb_exit_full_screen(){if (document.exitFullscreen)document.exitFullscreen();else if (document.mozCancelFullScreen)document.mozCancelFullScreen();else if (document.webkitExitFullscreen)document.webkitExitFullscreen();}function jry_wb_get_browser_from_database($data){if($data==1)return "IE8";else if($data==2)return "IE7";else if($data==3)return "IE6";else if($data==4)return "Firefox17";else if($data==5)return "Firefox16";else if($data==6)return "Chrome";else if($data==7)return "Safari";else if($data==8)return "Opera";else if($data==9)return "Edge";else if($data==10)return "Firefox";else if($data==11)return 'Mobile QQ browser HD';else if($data==12)return 'Mobile QQ browser';else if($data==13)return 'Firefox for iOS';else if($data==14)return 'Chrome for iOS';else if($data==15)return 'QQ browser';else if($data==16)return "IE11";else if($data==17)return "IE10";else if($data==18)return "IE9";else return 'unknow';}function jry_wb_get_device_from_database($db){if($db==1)return "iPad";else if($db==2)return 'iPhone';else if($db==3)return "Android";else return 'pc';}function jry_wb_get_domain(){var all=window.location.host.split(".");return all[all.length-2]+"."+all[all.length-1];}function jry_wb_test_domain_is_ip(){var all=window.location.host.split(".");var flag=false;for( var i=0,n=all.length;i<n;i++)flag|=isNaN(parseInt(all[i]));return !flag;}function jry_wb_get_file_type(address){var buf=address.split('.');return buf[buf.length-1].toLowerCase();}function jry_wb_get_get(){var get=new Object();if(location.search.indexOf("?")!=-1)for(var i=0,strs=location.search.substr(1).split("&");i<strs.length;i++)get[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);return get;}var jry_wb_get_ip_address_buf=new Map();function jry_wb_get_ip_address(ip,callback){jry_wb_add_on_indexeddb_open(function(){var re=jry_wb_indexeddb.transaction(['ip'],'readwrite').objectStore('ip').get(ip);re.onsuccess=function(){if(this.result!=undefined)return callback(this.result.data);if(jry_wb_get_ip_address_buf[ip]!=null)return jry_wb_get_ip_address_buf[ip].push(callback);jry_wb_get_ip_address_buf[ip]=[];jry_wb_get_ip_address_buf[ip].push(callback);jry_wb_ajax_load_data(jry_wb_message.jry_wb_host+'jry_wb_tools/jry_wb_get_ip_address.php?ip='+ip,function(data){jry_wb_loading_off();data=JSON.parse(data);data=data[0];jry_wb_indexeddb.transaction(['ip'],'readwrite').objectStore('ip').add(data);for(var i=0,n=jry_wb_get_ip_address_buf[ip].length;i<n;i++)jry_wb_get_ip_address_buf[ip][i](data.data);jry_wb_get_ip_address_buf[ip]=null;});};});}function jry_wb_get_path(s) {var m = new Image();m.src = s;return m.src;}function jry_wb_get_size(size){if(size<1)return (size*1024).toFixed(2)+'B';if(size<1024)return parseFloat(size).toFixed(2)+'KB';else if(size<1024*1024)return (size/1024).toFixed(2)+'MB';else if(size<1024*1024*1024)return (size/1024/1024).toFixed(2)+'GB';else if(size<1024*1024*1024*1024)return (size/1024/1024/1024).toFixed(2)+'TB';else return (size/1024/1024/1024/1024).toFixed(2)+'PB';}var jry_wb_get_songs_by_mid=new function(){this.get_qq=function(mid,callback){if(typeof callback!='function')return;jry_wb_add_on_indexeddb_open(function(){var re=jry_wb_indexeddb.transaction(['qq_music'],'readwrite').objectStore('qq_music').get(mid);re.onsuccess=function(){if(this.result==undefined||((jry_wb_get_server_time().getDate()-new Date(this.result.lasttime.replace(/\-/g, "/")).getDate())>=1)){jry_wb_ajax_load_data(jry_wb_message.jry_wb_host+'jry_wb_spiders/qq_music_spider.php?mid='+mid,(data)=>{jry_wb_loading_off();data=JSON.parse(data);data.lyric=data.lyric.split('\n');for(var k=0,o=data.lyric.length,t=0;k<o;data.lyric[k]={'t':t,'w':data.lyric[k].split(']')[1]},k++,t=0)for(var j=0,a=data.lyric[k].split(']')[0].slice(1).split(':'),m=a.length,t=0;j<m;j++)t+=Math.pow(60,m-j-1)*a[j];for(var j=0;j<data.lyric.length;j++)if(typeof data.lyric[j].w=='undefined'||data.lyric[j].w==''||isNaN(data.lyric[j].t))data.lyric.splice(j,1),j--;jry_wb_indexeddb.transaction(['qq_music'],'readwrite').objectStore('qq_music').put(data);callback(data);});}else callback(this.result);};});};this.get_163=function(mid,callback){if(typeof callback!='function')return;jry_wb_add_on_indexeddb_open(function(){var re=jry_wb_indexeddb.transaction(['163_music'],'readwrite').objectStore('163_music').get(parseInt(mid));re.onsuccess=function(){if(this.result==undefined||((jry_wb_get_server_time()-new Date(this.result.lasttime.replace(/\-/g, "/")))>(1000*60*60*0.25))){jry_wb_ajax_load_data(jry_wb_message.jry_wb_host+'jry_wb_spiders/163_music_spider.php?mid='+mid,(data)=>{jry_wb_loading_off();data=JSON.parse(data);data.lyric=data.lyric.split('\n');data.mid=parseInt(data.mid);for(var k=0,o=data.lyric.length,t=0;k<o;data.lyric[k]={'t':t,'w':data.lyric[k].split(']')[1]},k++,t=0)for(var j=0,a=data.lyric[k].split(']')[0].slice(1).split(':'),m=a.length,t=0;j<m;j++)t+=Math.pow(60,m-j-1)*a[j];for(var j=0;j<data.lyric.length;j++)if(typeof data.lyric[j].w=='undefined'||data.lyric[j].w==''||isNaN(data.lyric[j].t))data.lyric.splice(j,1),j--;jry_wb_indexeddb.transaction(['163_music'],'readwrite').objectStore('163_music').put(data);callback(data);});}else callback(this.result);};});};var get_qq=this.get_qq;var get_163=this.get_163;this.get_list=function(slid,callback){if(typeof callback!='function')return;jry_wb_add_on_indexeddb_open(function(){var re=jry_wb_indexeddb.transaction(['songlist'],'readwrite').objectStore('songlist').get(parseInt(slid));re.onsuccess=function(){if(this.result==undefined){jry_wb_ajax_load_data(jry_wb_message.jry_wb_host+'jry_wb_spiders/music_list_spider.php?slid='+slid,(data)=>{jry_wb_loading_off();data=JSON.parse(data);var save=[],ans={};ans.slid=data.slid;ans.makerid=data.makerid;ans.data=new Array();for(var i=0;i<data.data.length;i++){ans.data.push({'mid':data.data[i].type=='163'?parseInt(data.data[i].mid):data.data[i].mid,'type':data.data[i].type});data.data[i].lyric=data.data[i].lyric.split('\n');for(var k=0,o=data.data[i].lyric.length,t=0;k<o;data.data[i].lyric[k]={'t':t,'w':data.data[i].lyric[k].split(']')[1]},k++,t=0)for(var j=0,a=data.data[i].lyric[k].split(']')[0].slice(1).split(':'),m=a.length,t=0;j<m;j++)t+=Math.pow(60,m-j-1)*a[j];for(var j=0;j<data.data[i].lyric.length;j++)if(typeof data.data[i].lyric[j].w=='undefined'||data.data[i].lyric[j].w==''||isNaN(data.data[i].lyric[j].t))data.data[i].lyric.splice(j,1),j--;if(data.data[i].type=='qq')jry_wb_indexeddb.transaction(['qq_music'],'readwrite').objectStore('qq_music').put(data.data[i]);else if(data.data[i].type=='163')data.data[i].mid=parseInt(data.data[i].mid),jry_wb_indexeddb.transaction(['163_music'],'readwrite').objectStore('163_music').put(data.data[i]);}jry_wb_indexeddb.transaction(['songlist'],'readwrite').objectStore('songlist').put(ans);callback(data);});}else{var loading_cnt=this.result.data.length;for(let i=0,n=this.result.data.length;i<n;i++)if(this.result.data[i].type=='qq')get_qq(this.result.data[i].mid,(data)=>{this.result.data[i]=data;if((--loading_cnt)==0)callback(this.result);});else if(this.result.data[i].type=='163')get_163(this.result.data[i].mid,(data)=>{this.result.data[i]=data;if((--loading_cnt)==0)callback(this.result);});}};});};this.get=function(list,callback){var ans=[];var loading_cnt=list.length;for(let i=0,n=list.length;i<n;i++)if(list[i].type=='qq')this.get_qq(list[i].mid,function(data){data.order=i;ans.push(data);if((--loading_cnt)==0)callback(ans.sort(function(a,b){return a.order-b.order}));});else if(list[i].type=='163')this.get_163(list[i].mid,function(data){data.order=i;ans.push(data);if((--loading_cnt)==0)callback(ans.sort(function(a,b){return a.order-b.order}));});else if(list[i].type=='songlist')this.get_list(list[i].slid,function(data){for(var j=0;j<data.data.length;j++)data.data[j].order=i,ans.push(data.data[j]);if((--loading_cnt)==0)callback(ans.sort(function(a,b){return a.order-b.order}));});};};var jry_wb_highlight_buf=[];function jry_wb_highlight(area,code,start){<?php if(JRY_WB_DEBUG_MODE){ ?>console.time('jry_wb_highlight');<?php } ?>var dom=document.createElement("div");dom.classList.add('jry_wb_highlight');dom.style.maxHeight='390px';dom.style.position='relative';var tools_bar=document.createElement("div");dom.appendChild(tools_bar);tools_bar.classList.add('jry_wb_highlight_tools');var copy=document.createElement("span");tools_bar.appendChild(copy);copy.classList.add('jry_wb_icon_fuzhi','jry_wb_icon');var down=document.createElement("span");tools_bar.appendChild(down);down.classList.add('jry_wb_icon_arrow_down','jry_wb_icon');var down_flag=false;down.onclick=function(){if(down_flag==false){down.classList.add('jry_wb_icon_arrow_up');down.classList.remove('jry_wb_icon_arrow_down');dom.style.maxHeight='';down_flag=true;}else{down.classList.add('jry_wb_icon_arrow_down');down.classList.remove('jry_wb_icon_arrow_up');dom.style.maxHeight='390px';down_flag=false;}};var code_dom=document.createElement("div");code_dom.classList.add('jry_wb_highlight_code');jry_wb_add_onresize(()=>{tools_bar.style.width=code_dom.clientWidth;});var language='';function test(text,i,word){for(var j=0;j<word.length&&(i+j)<text.length;j++)if(word[j]!=text[i+j])return false;return word.length;}for(var i=start,n=code.length;i<n&&code[i]!='\n'&&code[i]!=' ';i++)language+=code[i];i++;language=language.toLowerCase();if(language=='c++')language='cpp';var important=[],operator=[],str=[],comment=[],preprocessor=[],constant=[];if(jry_wb_highlight_buf[language]==undefined){if(language=='c')important=['asm','auto','break','case','char','const','continue','default','define','do','double','else','enum','extern','float','for','goto','if','inline','int','long','register','return','short','signed','sizeof','static','struct','switch','true','typedef','union','unsigned','void','volatile','while'],constant=['NULL'],operator=[',','.','(',')','[',']','{','}','|','\\','<','>','?','/','!','@','$','%','^','&','*','-','=','+','~',';',':'],comment=[{'start':'/*','end':'*/'},{'start':'//','end':'\n'}],preprocessor=[{'start':'#','end':'\n'}],str=['"',"'"];else if(language=='cpp')important=['asm','auto','bool','break','case','catch','char','class','const','const_cast','continue','default','define','delete','do','double','dynamic_cast','else','enum','explicit','export','extern','false','float','for','friend','goto','if','inline','int','long','mutable','namespace','new','operator','private','protected','public','register','reinterpret_cast','return','short','signed','sizeof','static','static_cast','struct','switch','template','this','throw','try','typedef','typeid','typename','union','unsigned','using','virtual','void','volatile','wchar_t','while'],constant=['NULL','false','true'],operator=[',','.','(',')','[',']','{','}','|','\\','<','>','?','/','!','@','$','%','^','&','*','-','=','+','~',';',':'],comment=[{'start':'/*','end':'*/'},{'start':'//','end':'\n'}],preprocessor=[{'start':'#','end':'\n'}],str=['"',"'"];else if(language=='javascript'||language=='js')important=['abstract','arguments','boolean','break','byte','case','catch','char','class','const','continue','debugger','default','delete','do','double','else','enum','eval','export','extends','false','final','finally','float','for','function','goto','if','implements','import','in','instanceof','int','interface','let','long','native','new','null','package','private','protected','public','return','short','static','super','switch','synchronized','this','throw','throws','transient','true','try','typeof','var','void','volatile','while','with','yield'],constant=['Array','Date','Infinity','Math','NaN','Number','Object','String','eval','false','function','isFinite','isNaN','length','name','null','prototype','true','undefined'],operator=[',','.','(',')','[',']','{','}','|','\\','<','>','?','/','!','$','%','^','&','*','-','=','+','~',';',':'],comment=[{'start':'/*','end':'*/'},{'start':'//','end':'\n'}],preprocessor=[{'start':'#','end':'\n'}],str=['"',"'"];else if(language=='markdown'||language=='md')operator=[',','.','(',')','[',']','{','}','|','\\','<','>','?','/','!','@','#','$','%','^','&','*','-','=','+','~',';',':'],str=['"',"'"];else if(language=='json')operator=[',','[',']','{','}',':'],str=['"',"'"];else if(language=='bash')important=['sudo','apt-get','apt','install','ps','grep','cd','ls','netplan','apply','chmod','restart'],constant=['openssh-server','apache2','php7.2'];jry_wb_highlight_buf[language]=new jry_wb_trie();for(var j=0,n=important.length;j<n;j++)jry_wb_highlight_buf[language].add(important[j],{'word':important[j],'type':'important'});for(var j=0,n=constant.length;j<n;j++)jry_wb_highlight_buf[language].add(constant[j],{'word':constant[j],'type':'constant'});for(var j=0,n=operator.length;j<n;j++)jry_wb_highlight_buf[language].add(operator[j],{'word':operator[j],'type':'operator'});for(var j=0,n=comment.length;j<n;j++)jry_wb_highlight_buf[language].add(comment[j].start,{'data':comment[j],'type':'comment'});for(var j=0,n=preprocessor.length;j<n;j++)jry_wb_highlight_buf[language].add(preprocessor[j].start,{'data':preprocessor[j],'type':'preprocessor'});for(var j=0,n=str.length;j<n;j++)jry_wb_highlight_buf[language].add(str[j],{'word':str[j],'type':'str'});}var trie=jry_wb_highlight_buf[language];var lastword_dom=null;var nwt=(/[0-9a-zA-Z_]/i);var wt=(/[a-zA-Z_]/i);for(n=code.length;i<n;i++){if(code[i]=='`'&&code[i+1]=='`'&&code[i+2]=='`'){<?php if(JRY_WB_DEBUG_MODE){ ?>console.timeEnd('jry_wb_highlight');<?php } ?>dom.appendChild(code_dom);area.appendChild(dom);new jry_wb_beautiful_scroll(dom,undefined,undefined,true);copy.onclick=function(){jry_wb_copy_to_clipboard(code.slice(start+language.length+1,i));jry_wb_beautiful_right_alert.alert('复制成功',2000,'auto','ok')};return i+2;}if(code[i]=='\n')lastword_dom=null,code_dom.appendChild(document.createElement('br'));else if(code[i]=='\t'){lastword_dom=null;var span=document.createElement('span');code_dom.appendChild(span);span.innerHTML='&emsp;&emsp;';}else if(code[i]==' '){lastword_dom=null;var span=document.createElement('span');code_dom.appendChild(span);span.innerHTML='&ensp;';}else{var flag=false;var result=trie.serch(code,i);if(result!=null){if(result.word!=undefined)var wl=result.word.length;else var wl=result.data.start.length;if(((result.type=='important'||result.type=='constant')&&(!nwt.test(code[i-1]))&&(!nwt.test(code[i+wl])))||((result.type=='operator')&&true)){i+=wl-1;var span=document.createElement('span');code_dom.appendChild(span);span.innerHTML=result.word;span.classList.add(result.type);flag=true;lastword_dom=null;}else if(result.type=='preprocessor'){i+=wl;var span=document.createElement('span');code_dom.appendChild(span);span.innerHTML+=result.data.start;span.classList.add('preprocessor');for(;i<n&&(!(k=test(code,i,result.data.end)));i++){if(code[i]=='\n')span.appendChild(document.createElement('br'));else if(code[i]==' ')span.innerHTML+='&nbsp;';else span.innerHTML+=code[i];}span.innerHTML+=result.data.end;flag=true;lastword_dom=null;i+=k-1;if(result.data.end[result.data.end.length-1]=='\n')code_dom.appendChild(document.createElement('br'));}else if(result.type=='comment'){i+=wl;var span=document.createElement('span');code_dom.appendChild(span);span.innerHTML+=result.data.start;span.classList.add('comment');for(;i<n&&(!(k=test(code,i,result.data.end)));i++)if(code[i]=='\n')span.appendChild(document.createElement('br'));else if(code[i]==' ')span.innerHTML+='&nbsp;';else span.innerHTML+=code[i];span.innerHTML+=result.data.end;flag=true;lastword_dom=null;i+=k-1;if(result.data.end[result.data.end.length-1]=='\n')code_dom.appendChild(document.createElement('br'));}else if(result.type=='str'&&code[i-1]!='\\'){i+=wl;var span=document.createElement('span');code_dom.appendChild(span);span.classList.add('string');span.innerHTML+=result.word;for(;i<n&&((!(k=test(code,i,result.word)))||(k!=false&&code[i-1]=='\\'))&&!(code[i]=='`'&&code[i+1]=='`'&&code[i+2]=='`');i++)if(code[i]=='\n')span.appendChild(document.createElement('br'));else if(code[i]==' ')span.innerHTML+='&nbsp;';else span.innerHTML+=code[i];flag=true;if(code[i]=='`'&&code[i]=='`'&&code[i]=='`')i-=1;else{span.innerHTML+=result.word;lastword_dom=null;i+=k-1;}}else{i+=wl-1;if(lastword_dom==null)lastword_dom=document.createElement('span'),code_dom.appendChild(lastword_dom);lastword_dom.classList.add('default');lastword_dom.innerHTML+=result.word;flag=true;}}if(flag==false)if(!(wt.test(code[i-1]))&&!isNaN(parseInt(code[i]))){flag=true;var span=document.createElement('span');code_dom.appendChild(span);lastword_dom=null;span.innerHTML=code[i];span.classList.add('number');lastword_dom=null;}if(flag==false){if(lastword_dom==null)lastword_dom=document.createElement('span'),code_dom.appendChild(lastword_dom);lastword_dom.classList.add('default');lastword_dom.innerHTML+=code[i];}}}<?php if(JRY_WB_DEBUG_MODE){ ?>console.timeEnd('jry_wb_highlight');<?php } ?>return false;}jry_wb_include_once_script_cnt=0;function jry_wb_include_once_script(src,callback){if(typeof callback!='function')callback=function(){};src = jry_wb_get_path(src);var test = document.getElementsByTagName('script');var flag = false;for( var i = 0,n = test.length;i<n;i++)if(test[i].src==src)return callback(),true;jry_wb_loading_on();jry_wb_include_once_script_cnt++;var myscript=document.createElement('script');document.head.appendChild(myscript);myscript.src=src;myscript.type='text/javascript';myscript.defer=true;myscript.onload=function(){jry_wb_loading_off();jry_wb_include_once_script_cnt--;callback();};return false;}function jry_wb_include_once_css(src){src = jry_wb_get_path(src);var test = document.getElementsByTagName('link');var flag = false;for( var i = 0,n = test.length;i<n;i++)if(test[i].type=='text/css'&&test[i].href==src)return true;jry_wb_loading_on();var mylink=document.createElement('link');document.head.appendChild(mylink);mylink.href=src;mylink.type='text/css';mylink.rel='stylesheet';mylink.onload=function(){jry_wb_loading_off();};return false;}function jry_wb_include_css(srcc){src=srcc.split('/');var data=jry_wb_login_user.style.data;for(var i=0;i<src.length&&data!=undefined;i++)data=data[src[i]];if(data==undefined)return;var old=document.getElementById(srcc);jry_wb_loading_on();var mylink=document.createElement('link');document.head.appendChild(mylink);mylink.href=(jry_wb_login_user.style.data.base_url==''?jry_wb_message.jry_wb_host+'jry_wb_css/':jry_wb_login_user.style.data.base_url)+(jry_wb_test_is_pc()?data.desktop:data.mobile);mylink.type='text/css';mylink.rel='stylesheet';mylink.onload=function(){jry_wb_loading_off();if(old!=undefined)old.remove();};mylink.id=srcc;}var jry_wb_indexeddb;window.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;window.IDBTransaction=window.IDBTransaction||window.webkitIDBTransaction||window.msIDBTransaction||{READ_WRITE:"readwrite"};window.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange||window.msIDBKeyRange;window.onindexeddbopen=function(){jry_wb_beautiful_right_alert.alert('思维联络成功!',500,'auto','ok');};function jry_wb_add_on_indexeddb_open(func){if(jry_wb_indexeddb!=undefined)return func();var old_onindexeddbopen=window.onindexeddbopen;window.onindexeddbopen=function(){old_onindexeddbopen();func();};}var jry_wb_indexeddb_restart_cnt=0;function jry_wb_indexeddb_init(){var request=window.indexedDB.open('jry_wb',12);var timer=null;var update_flag=false;request.onerror=function(event){jry_wb_beautiful_right_alert.alert('思维联络失败!',1000,'auto','error');jry_wb_indexeddb_restart_cnt++;if(jry_wb_indexeddb_restart_cnt<10)setTimeout(jry_wb_indexeddb_init,1000);else jry_wb_beautiful_alert.alert('思维混乱了!','尝试刷新一下康康？');};request.onsuccess=function(event){jry_wb_indexeddb=request.result;if(update_flag)jry_wb_beautiful_right_alert.alert('思维升级完成!',1000,'auto','ok');window.onindexeddbopen();};var creat_list=[{'name':'user','key':'id'},{'name':'manage_user','key':'id'},{'name':'lasttime','key':'key'},{'name':'invitecode','key':'incite_code_id'},{'name':'log','key':'log_id'},{'name':'oj_question_list','key':'question_id'},{'name':'oj_manage_question_list','key':'question_id'},{'name':'oj_logs','key':'log_id'},{'name':'oj_classes','key':'class_id'},{'name':'oj_error','key':'error_id'},{'name':'blog_list','key':'blog_id'},{'name':'blog_draft_list','key':'blog_id'},{'name':'chat_rooms','key':'chat_room_id'},{'name':'chat_messages','key':'chat_text_id'},{'name':'nd_group','key':'group_id'},{'name':'nd_area','key':'area_id'},{'name':'nd_file_list','key':'file_id'},{'name':'nd_share_list','key':'share_id'},{'name':'manage_user_list','key':'id'},{'name':'manage_competence','key':'type'},{'name':'manage_bigdeal','key':'bigdeal_id'},{'name':'manage_hengfu','key':'hengfu_id'},{'name':'manage_tanmu','key':'tanmu_id'},{'name':'qq_music','key':'mid'},{'name':'163_music','key':'mid'},{'name':'songlist','key':'slid'},{'name':'blog_text','key':'blog_id'},{'name':'blog_draft_text','key':'blog_id'},{'name':'ip','key':'data.ip'}];request.onupgradeneeded=function(event){update_flag=true;jry_wb_beautiful_right_alert.alert('思维升级中......',1000,'auto','warn');jry_wb_indexeddb=request.result;for(var i=0,n=creat_list.length;i<n;i++)if(!jry_wb_indexeddb.objectStoreNames.contains(creat_list[i].name)) jry_wb_indexeddb.createObjectStore(creat_list[i].name,{keyPath:creat_list[i].key});};request.onclose=function(){jry_wb_beautiful_right_alert.alert('数据库连接已关闭',1000,'auto','ok');};};function jry_wb_indexeddb_reinit(){jry_wb_beautiful_right_alert.alert('正在关闭数据库.....',1000,'auto','warn');jry_wb_indexeddb.close();jry_wb_beautiful_right_alert.alert('数据库连接已关闭',1000,'auto','ok');jry_wb_beautiful_right_alert.alert('正在删除数据库.....',1000,'auto','warn');var req=indexedDB.deleteDatabase('jry_wb');req.onsuccess=function(){jry_wb_beautiful_right_alert.alert('数据库已删除',1000,'auto','ok');jry_wb_indexeddb_init();};req.onerror=function(){jry_wb_beautiful_right_alert.alert('数据库删除失败',1000,'auto','error');};req.onblocked=function(){jry_wb_beautiful_right_alert.alert('数据库删除被阻塞',1000,'auto','error');};}function jry_wb_indexeddb_clear(){var clear_list=[{'name':'manage_user','key':'id'},{'name':'lasttime','key':'key'},{'name':'invitecode','key':'incite_code_id'},{'name':'log','key':'log_id'},{'name':'oj_manage_question_list','key':'question_id'},{'name':'oj_error','key':'error_id'},{'name':'blog_draft_list','key':'blog_id'},{'name':'chat_rooms','key':'chat_room_id'},{'name':'chat_messages','key':'chat_text_id'},{'name':'nd_area','key':'area_id'},{'name':'nd_file_list','key':'file_id'},{'name':'nd_share_list','key':'share_id'},{'name':'manage_user_list','key':'id'},{'name':'manage_competence','key':'type'},{'name':'manage_bigdeal','key':'bigdeal_id'},{'name':'manage_hengfu','key':'hengfu_id'},{'name':'manage_tanmu','key':'tanmu_id'},{'name':'blog_draft_text','key':'blog_id'}];for(let i=0;i<clear_list.length;i++)jry_wb_indexeddb_delete(clear_list[i]);}function jry_wb_indexeddb_delete(table){jry_wb_loading_on();jry_wb_indexeddb_set_lasttime(table.name,'1926-08-17 00:00:00');jry_wb_beautiful_right_alert.alert('正在清空表'+table.name,500+Math.random()*500,'auto');let re=jry_wb_indexeddb.transaction([table.name],'readwrite').objectStore(table.name);re.openCursor().onsuccess=function(){var cursor=this.result;if (cursor)re.delete(cursor.value[table.key]),cursor.continue();else jry_wb_beautiful_right_alert.alert('清空表'+table.name+'成功',1000+Math.random()*1000,'auto','ok'),jry_wb_loading_off();};}jry_wb_indexeddb_init();function jry_wb_indexeddb_set_lasttime(key,time){jry_wb_add_on_indexeddb_open(function(){jry_wb_indexeddb.transaction(['lasttime'],'readwrite').objectStore('lasttime').put({'key':key,'time':time});});}function jry_wb_indexeddb_get_lasttime(key,callback){jry_wb_add_on_indexeddb_open(function(){var re=jry_wb_indexeddb.transaction(['lasttime'],'readwrite').objectStore('lasttime').get(key);re.onsuccess=function(){if(this.result==undefined)return callback('1926-08-17 00:00:00'.to_time());callback(this.result.time.to_time());};});}function jry_wb_indexeddb_get_all(db_name,callback){jry_wb_loading_on();jry_wb_add_on_indexeddb_open(function(){var re=jry_wb_indexeddb.transaction([db_name],'readwrite').objectStore(db_name).openCursor();var data=[];re.onsuccess=function(){var cursor=this.result;if (cursor)data.push(cursor.value),cursor.continue();else jry_wb_loading_off(),callback(data);};});}var jry_wb_js_session=new function(){var keys=[];this.close=false;var map=new Map();if(jry_wb_message.jry_wb_host=='')this.close=true;else if(typeof SharedWorker=='undefined')this.close=true;else{var worker=new SharedWorker(jry_wb_message.jry_wb_host+'jry_wb_js/jry_wb_js_session_worker.js');worker.port.onmessage=(data)=>{if(this.close)return;data=data.data;if(keys.indexOf(data.key)!=-1){keys.splice(keys.indexOf(data.key),1);return;}<?php if(JRY_WB_DEBUG_MODE){ ?>console.log('JS session receive message: ',data);<?php } ?>var func=map.get(data.to);if(typeof func=='function')func(data.data);};worker.port.start();}this.send=function(to,data){var data;if(this.close)return;worker.port.postMessage(data={'to':to,'data':data,'key':(keys[keys.length]=Math.random())});<?php if(JRY_WB_DEBUG_MODE){ ?>console.log('JS session send message: ',data);<?php } ?>};this.add_listener=function(id,func){if(this.close)return;map.set(id,func);};};function jry_wb_markdown(area,id,time,text,notitle){this.notitle=true;if(notitle==null)this.notitle=false;this.father=area;this.area=document.createElement('div');this.father.appendChild(this.area);this.catalog=document.createElement('ul');this.autonum=false;this.catalogdoc=[];this.lastcatalog=null;this.lasttext=null;this.title='';this.color_flag=false;this.color_flag=false;this.delete_flag=false;this.strong_flag=false;this.id=id;this.netdisk_src=jry_wb_message.jry_wb_host+'jry_wb_netdisk/jry_nd_do_file.php';var allow_html=['audio','a','b','br','div','em','iframe','i','img','kbd','p','span','sub','sup'];var disallow_attribute=['onclick','onmouseover','onmousedown','onmouseenter','onmouseleave','onmousemove','onmouseout','onmouseover','onmousewheel','ondrag','ondrop','onfocus'];function test(text,i,word){for(var j=0;j<word.length&&(i+j)<text.length;j++)if(word[j]!=text[i+j])return false;return word.length;}this.fresh=(time,text,force)=>{if(force==undefined)force=false;if(typeof jry_wb_ajax_get_text=="function")text=jry_wb_ajax_get_text(text);else text=(text);if(text==this.text&&!force)return;this.text=text;if(this.text[0]!='-')return this.area.innerHTML=this.text.replace(/</g,'&lt;').replace(/>/g,'&gt;');<?php if(JRY_WB_DEBUG_MODE){ ?>console.time('jry_wb_markdown');<?php } ?>var start=new Date();this.father.removeChild(this.area);<?php if(JRY_WB_DEBUG_MODE){ ?>if(typeof console.timeLog!='undefined')console.timeLog('jry_wb_markdown');<?php } ?>this.area.innerHTML='';this.catalog.innerHTML='';this.autonum=false;this.catalogdoc=[];this.lastcatalog=null;this.lasttext=null;this.title='';this.color_flag=false;this.delete_flag=false;this.em_flag=false;this.strong_flag=false;var buf=document.createElement('div');var title_flag=false;var title_flag_enable=true;for(var i=0,n=this.text.length;i<n;i++){if(this.text[i]=='-'&&this.text[i+1]=='-'&&this.text[i+2]=='-'){if(title_flag){title_flag=false;if(!this.notitle){var div=document.createElement("div");this.area.appendChild(div);div.align="right";div.classList.add('md_time_and_user');div.innerHTML="by";jry_wb_get_and_show_user(div,this.id,null,null,true);div=null;var div=document.createElement("div");this.area.appendChild(div);div.innerHTML="at&nbsp;"+time;div.align="right";div.classList.add('md_time_and_user');var hr=document.createElement("HR");this.area.appendChild(hr);hr.classList.add('md_hr');}}else if(title_flag_enable)title_flag=true;i+=2;continue;}else if(this.text[i]!=' '||this.text[i]!='\n'||this.text[i]!='\t'){title_flag_enable=false;}if(title_flag){if(j=test(this.text,i,'title:')){i+=j;var title=document.createElement("div");if(!this.notitle)this.area.appendChild(title);title.classList.add('md_title');title.align="center";for(;i<n&&this.text[i]!='\n'&&this.text[i]!='-';i++)title.innerHTML+=this.text[i];this.title=title.innerHTML;}else if(j=test(this.text,i,'autonum:')){i+=j;var buf='';for(;i<n&&this.text[i]!='\n'&&this.text[i]!='-';i++)buf+=this.text[i];if(buf=='true')this.autonum=true;else if(buf=='false')this.autonum=false;}else if(j=test(this.text,i,'netdisk_src:')){i+=j;this.netdisk_src='';for(;i<n&&this.text[i]!='\n'&&this.text[i]!='-';i++)this.netdisk_src+=this.text[i];}}else{if(this.text[i]=='#'&&(i==0||this.text[i-1]=='\n')){for(var j=0;(i+j)<this.text.length&&this.text[i+j]=='#';j++);i+=j;var buf='';for(;i<n&&this.text[i]!='\n';i++)buf+=this.text[i];var a=document.createElement("a");this.area.appendChild(a);var a2=a.cloneNode();a.classList.add('md_h_'+j);a2.classList.add('md_a');a.innerHTML=a2.innerHTML=buf;a2.href='#'+(a.name=JSON.stringify({'word':buf}));var br=document.createElement("br");this.area.appendChild(br);var li=document.createElement("li");li.appendChild(a2);li.setAttribute('h',j);var ul=document.createElement("ul");li.appendChild(ul);if(this.lastcatalog==null){if(this.catalog.children.length<2)this.catalog.appendChild(li);else this.catalog.children[1].appendChild(li);li.setAttribute('num',1);li.setAttribute('str','1.');if(this.autonum)a.innerHTML=a2.innerHTML='1.'+a.innerHTML;}else if(parseInt(this.lastcatalog.getAttribute('h'))>=j){var get=(a,j)=>{if(a==null)return this.catalog;else if(parseInt(a.getAttribute('h'))<j)return a;else return get(a.parentNode,j);};var b=get(this.lastcatalog,j);var num;if(b==this.catalog&&b.children==0)li.setAttribute('num',num=(1));else if(b==this.catalog)li.setAttribute('num',num=(parseInt(b.children[b.children.length-1].getAttribute('num'))+1));else if(b.children.length<2)li.setAttribute('num',num=(1));else if(b.children[1].children.length==0)li.setAttribute('num',num=(1));else li.setAttribute('num',num=(parseInt(b.children[1].children[b.children[1].children.length-1].getAttribute('num'))+1));var str;li.setAttribute('str',(str=b.getAttribute('str')+num+'.'));if(this.autonum)a.innerHTML=a2.innerHTML=str+a.innerHTML;if(b==this.catalog)b.appendChild(li);else b.children[1].appendChild(li);}else{var get=(a,j)=>{if(parseInt(a.getAttribute('h'))<=j||a.children.length==0)return a;else return get(a.children[a.children.length-1],j);};var b=get(this.lastcatalog,j);li.setAttribute('num',1);var str;li.setAttribute('str',(str=b.getAttribute('str')+1+'.'));if(this.autonum)a.innerHTML=a2.innerHTML=str+a.innerHTML;b.children[1].appendChild(li);}this.lastcatalog=li;this.lasttext=null;}else if(this.text[i]=='<'){var flag=false;for(var j=0;j<allow_html.length;j++)if((k=test(this.text,i+1,allow_html[j]))){var art='';for(var a=0;a+k+i+1<n;a++)if(this.text[a+k+i+1]=='>'){var buf='';for(var b=0;a+k+i+b+2<n&&a<20000&&(!(c=test(this.text,a+k+i+b+2,'</'+allow_html[j]+'>')));b++)buf+=this.text[a+k+i+b+2];if(c){i+=a+b+k+c+2-1;flag=true;this.lasttext=null;var dom=document.createElement(allow_html[j]);art=art.split(' ');for(var d=0;d<art.length;d++){var buff=art[d].split('=');if(buff[0]!=undefined&&buff[1]!=undefined)dom.setAttribute(buff[0],buff[1].slice(1,-1));}dom.innerHTML=buf;function ju(d){if(d.tagName=='SCRIPT')setTimeout(function(){eval(d.innerHTML)},500);for(var e=0;e<disallow_attribute.length;e++)d.removeAttribute(disallow_attribute[e]);for(var i=0;i<d.children.length;i++)if(!allow_html.includes(d.children[i].tagName.toLowerCase()))d.removeChild(d.children[i]);else ju(d.children[i]);}ju(dom);this.area.appendChild(dom);break;}}else art+=this.text[a+k+i+1];break;}if(!flag){if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');this.lasttext.innerHTML+=this.text[i];}}else if(this.text[i]=='\n'){if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');var br=document.createElement("br");this.lasttext.appendChild(br);}else if(this.text[i]=='>'&&(i==0||this.text[i-1]=='\n')){i++;if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');var cite=document.createElement("cite");this.lasttext.appendChild(cite);cite.classList.add('md_cite');for(;i<n&&this.text[i]!='\n';i++)cite.innerHTML+=this.text[i];var br=document.createElement("br");this.lasttext.appendChild(br);}else if(j=test(this.text,i,'[toc]')){i+=j;var buf=document.createElement('ul');this.area.appendChild(buf);buf.classList.add('md_toc_ul');this.catalogdoc.push(buf);buf.innerHTML=this.catalog.innerHTML;this.lasttext=null;}else if(j=test(this.text,i,'[@')){var id='';for(var j=0;(i+j+2)<n&&this.text[i+j+2]!=']'&&j<128;j++)id+=this.text[i+j+2];if(!isNaN(id=parseInt(id))){i+=(j+2);if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');jry_wb_get_and_show_user(this.lasttext,id,'200px',null,true);}else{if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');this.lasttext.innerHTML+='[@';i+=1;}}else if(this.text[i]=='['){var word='';var href='';var failed=false;for(var j=0;(i+j+1)<n&&this.text[i+j+1]!=']'&&j<128;j++)word+=this.text[i+j+1];j+=2;if(j<128){if(this.text[i+j]=='('){for(var k=0;(i+j+k+1)<n&&this.text[i+j+k+1]!=')'&&k<256;k++)href+=this.text[i+j+k+1];if(k<256&&(test(href,0,'http://')||test(href,0,'https://'))){i+=j;i+=k;i+=1;if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');var a=document.createElement("a");this.lasttext.appendChild(a);a.href=href;a.classList.add('md_link');a.setAttribute('target','_blank');a.innerHTML=word;}else failed=true;}else failed=true;}else failed=true;if(failed){if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');this.lasttext.innerHTML+=this.text[i];}}else if(j=test(this.text,i,'==')){i+=j;if(this.color_flag){i-=1;this.color_flag=false;this.lasttext=this.lasttext.parentNode;}else{this.color_flag=true;if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');var buf=document.createElement("span");this.lasttext.appendChild(buf);this.lasttext=buf;var buf='';if(this.text[i]=='#'){for(var j=0;i<n&&this.text[i]!=' '&&j<7;i++,j++)buf+=this.text[i];i-=1;}else buf='#66ccff';this.lasttext.style.color=buf;}}else if(j=test(this.text,i,'~~')){i+=(j-1);if(this.delete_flag){this.delete_flag=false;this.lasttext=this.lasttext.parentNode;}else{this.delete_flag=true;if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');var buf=document.createElement("span");this.lasttext.appendChild(buf);this.lasttext=buf;buf.classList.add('line_m');}}else if(j=test(this.text,i,'__')){i+=(j-1);if(this.em_flag){this.em_flag=false;this.lasttext=this.lasttext.parentNode;}else{this.em_flag=true;if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');var buf=document.createElement("em");this.lasttext.appendChild(buf);this.lasttext=buf;}}else if(j=test(this.text,i,'**')){i+=(j-1);if(this.strong_flag){this.strong_flag=false;this.lasttext=this.lasttext.parentNode;}else{this.strong_flag=true;if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');var buf=document.createElement("strong");this.lasttext.appendChild(buf);this.lasttext=buf;}}else if(j=test(this.text,i,'![')){var word='';var href='';var failed=false;for(var j=0;(i+j+2)<n&&this.text[i+j+2]!=']'&&j<128;j++)word+=this.text[i+j+2];j+=2;if(j<128){if(this.text[i+j+1]=='('){for(var k=0;(i+j+k+2)<n&&this.text[i+j+k+2]!=')'&&k<256;k++)href+=this.text[i+j+k+2];if(k<256&&((buf=href.split(',')).length>=2)&&!isNaN(parseInt(buf[0]))&&!isNaN(parseInt(buf[1])))href=this.netdisk_src+'?action=open&share_id='+buf[0]+'&file_id='+buf[1]+(buf[2]==undefined?'':'&fast='+buf[2]);if(k<256&&(test(href,0,'http://')||test(href,0,'https://'))){i+=j;i+=k;i+=2;var div=document.createElement("div");this.area.appendChild(div);div.align="center";var img=document.createElement("img");div.appendChild(img);img.src=href;img.classList.add('md_img');img.setAttribute('onclick','jry_wb_beautiful_alert.openpicture("'+word+'",(document.body.clientWidth-100),(document.body.clientHeight-100),"'+href+'");');var br=document.createElement("br");div.appendChild(br);var a=document.createElement("a");div.appendChild(a);a.innerHTML=word;a.href=href;a.className="md_media_font";this.lasttext=null}else failed=true;}else failed=true;}else failed=true;if(failed){if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');this.lasttext.innerHTML+=this.text[i];}}else if(j=test(this.text,i,'%[')){var word='';var href='';var failed=false;for(var j=0;(i+j+2)<n&&this.text[i+j+2]!=']'&&j<128;j++)word+=this.text[i+j+2];j+=2;if(j<128){if(this.text[i+j+1]=='('){for(var k=0;(i+j+k+2)<n&&this.text[i+j+k+2]!=')'&&k<256;k++)href+=this.text[i+j+k+2];if(k<256&&((buf=href.split(',')).length>=2)&&!isNaN(parseInt(buf[0]))&&!isNaN(parseInt(buf[1])))href=this.netdisk_src+'?action=open&share_id='+buf[0]+'&file_id='+buf[1]+(buf[2]==undefined?'':'&fast='+buf[2]);if(k<256&&(test(href,0,'http://')||test(href,0,'https://'))){i+=j;i+=k;i+=2;var div=document.createElement("div");this.area.appendChild(div);div.align="center";var video=document.createElement("video");div.appendChild(video);video.src=href;new jry_wb_beautiful_video(video);var br=document.createElement("br");div.appendChild(br);var a=document.createElement("a");div.appendChild(a);a.innerHTML=word;a.href=href;a.className="md_media_font";this.lasttext=null}else failed=true;}else failed=true;}else failed=true;if(failed){if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');this.lasttext.innerHTML+=this.text[i];}}else if(j=test(this.text,i,'~[')){var word='';var href='';var failed=false;for(var j=0;(i+j+2)<n&&this.text[i+j+2]!=']'&&j<128;j++)word+=this.text[i+j+2];j+=2;if(j<128){if(this.text[i+j+1]=='('){for(var k=0;(i+j+k+2)<n&&this.text[i+j+k+2]!=')'&&k<256;k++)href+=this.text[i+j+k+2];if(k<256&&((buf=href.split(',')).length>=2)&&!isNaN(parseInt(buf[0]))&&!isNaN(parseInt(buf[1])))href=this.netdisk_src+'?action=open&share_id='+buf[0]+'&file_id='+buf[1]+(buf[2]==undefined?'':'&fast='+buf[2]);if(k<256&&(test(href,0,'http://')||test(href,0,'https://'))){i+=j;i+=k;i+=2;var div=document.createElement("div");this.area.appendChild(div);div.align="center";var audio=document.createElement("audio");div.appendChild(audio);audio.src=href;(new jry_wb_beautiful_music(audio,null,false,true)).set_background_picture('','');var br=document.createElement("br");div.appendChild(br);var a=document.createElement("a");div.appendChild(a);a.innerHTML=word;a.href=href;a.className="md_media_font";this.lasttext=null}else failed=true;}else failed=true;}else failed=true;if(failed){if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');this.lasttext.innerHTML+=this.text[i];}}else if(j=test(this.text,i,'```')){i+=j;if((j=jry_wb_highlight(this.area,this.text,i))!==false)i=j;this.lasttext=null;}else if((j=test(this.text,i,'-[x]'))||(k=test(this.text,i,'-[]'))){if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');var b=document.createElement("b");this.lasttext.appendChild(b);b.classList.add('jry_wb_icon');if(j==false)j=k,b.classList.add('md_unfinish','jry_wb_icon_hr');else b.classList.add('md_finish','jry_wb_icon_ok');i+=(j-1);}else if((j=test(this.text,i,'[http://'))||(k=test(this.text,i,'[https://'))){var href='http';if(j==false)href+='s',j=k;href+='://';i+=j;for(;i<n&&this.text[i]!=']';i++)href+=this.text[i];if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');var a=document.createElement("a");this.lasttext.appendChild(a);a.href=href;a.classList.add('md_link');a.setAttribute('target','_blank');a.innerHTML='网页链接';}else{if(this.lasttext==null)this.lasttext=document.createElement("span"),this.area.appendChild(this.lasttext),this.lasttext.classList.add('md_normal');this.lasttext.innerHTML+=this.text[i];}}}for(var i=0;i<this.catalogdoc.length;i++)this.catalogdoc[i].innerHTML=this.catalog.innerHTML;<?php if(JRY_WB_DEBUG_MODE){ ?>if(typeof console.timeLog!='undefined')console.timeLog('jry_wb_markdown');<?php } ?>this.father.appendChild(this.area);<?php if(JRY_WB_DEBUG_MODE){ ?>console.timeEnd('jry_wb_markdown');<?php } ?>this.time=(new Date()-start);};this.fresh(time,text);}var jry_wb_midia_control_all=new function(){this.playing_buf = null;this.playing = 0;var timer1=null;var timer2=null;var timer3=null;jry_wb_js_session.add_listener(1,(data)=>{<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>var playing=jry_wb_cache.get('background_music');if(playing.status==true)this.stop_background=false;<?php } ?>if(data=='get'){if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer2!=null)clearTimeout(timer2),timer2=null;if(timer3!=null)clearTimeout(timer3),timer3=null;this.pause_all();}else if(data=='lose'){if(document.visibilityState != 'hidden'){jry_wb_js_session.send(1,'get');this.start();}if(timer!=null){if(timer1!=null)clearTimeout(timer1),timer1=null;if(timer2!=null)clearTimeout(timer2),timer2=null;if(timer3!=null)clearTimeout(timer3),timer3=null;}}else if(data=='close'){timer1=setTimeout(()=>{timer1=null;if(timer3!=null)clearTimeout(timer3),timer3=null;if(document.visibilityState != 'hidden'){jry_wb_js_session.send(1,'get');this.start();}else{timer2=setTimeout(()=>{jry_wb_js_session.send(1,'get');this.start();},(Math.random()*1000)+1000);}},Math.random()*1000);}});jry_wb_add_onbeforeunload(()=>{if(document.visibilityState!='hidden') jry_wb_js_session.send(1,'close');});document.addEventListener('visibilitychange',()=> {if(document.visibilityState == 'hidden') {jry_wb_js_session.send(1,'lose');}else{jry_wb_js_session.send(1,'get');<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>if(this.playing_buf==null&&!jry_wb_background_music.status())this.start();<?php } ?>}});<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>setInterval(()=>{if(document.visibilityState != 'hidden'&& !jry_wb_background_music.status()){jry_wb_js_session.send(1,'get');this.start();}},2000);<?php } ?>this.pause_all=()=>{if(this.playing_buf!=null)this.playing_buf.pause();<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>if(this.playing_buf==null)jry_wb_background_music.break(),jry_wb_background_music.oncontrol=false;<?php } ?>};this.start=()=>{if(this.playing_buf==null){<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>if((this.stop_background==false||typeof this.stop_background=='undefined'))jry_wb_background_music.oncontrol=true,jry_wb_background_music.continue();<?php } ?>}else this.playing_buf.play();};this.onplay = function(audio){if(this.playing_buf!=null)this.playing_buf.pause();<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>if(audio.id=='jry_wb_background_music')return this.stop_background=false;if(this.playing_buf==null)jry_wb_background_music.break();<?php } ?>this.playing_buf = audio;};this.onpause = function(audio){<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>if(audio.id=='jry_wb_background_music')this.stop_background=true;else{<?php } ?>this.playing_buf=null;<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>setTimeout(function(){jry_wb_background_music.oncontrol=true,jry_wb_background_music.continue();},500);}<?php } ?>};};var jry_wb_music_alert=new function(){var a=document.createElement('audio');a.src=jry_wb_message.jry_wb_data_host+'music/newmessage.mp3';var playing=false;this.play=()=>{if(playing)return;playing=true;<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>var volume=jry_wb_background_music.audio.volume;<?php } ?>a.onended=function(){<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>jry_wb_background_music.audio.volume=volume;<?php } ?>playing=false;};<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>jry_wb_background_music.audio.volume*=0.2;<?php } ?>a.play();};};Number.prototype.to_time=function(){return (new Date(this));};function jry_wb_progress_bar(area,width,progress,word,mouthclick,mouthmove,addclass,type,active,shuzhi,buttom_type){this.shuzhi=shuzhi==null?false:shuzhi;this.progress_body=document.createElement("div");area.appendChild(this.progress_body);this.progress_body.classList.add('jry_wb_progress','tooltip');if(addclass!='')this.progress_body.classList.add(addclass);this.progress_body.onmouseover=function(){buff=window.onmousewheel;if(document.removeEventListener)document.removeEventListener('DOMMouseScroll',window.onmousewheel);window.onmousewheel=function(){};};this.progress_body.onmouseout=function(){window.onmousewheel=buff;if(document.addEventListener)document.addEventListener('DOMMouseScroll',window.onmousewheel,false);};if(this.shuzhi)this.progress_body.style.height=width;else this.progress_body.style.width=width;if(buttom_type==undefined)this.progress_bar_buttom=null;else{this.progress_bar_buttom=document.createElement("div");this.progress_body.appendChild(this.progress_bar_buttom);this.progress_bar_buttom.classList.add('jry_wb_progress_bar');if(this.shuzhi)this.progress_bar_buttom.style.height=0;else this.progress_bar_buttom.style.width=0;if(buttom_type=='error')this.progress_bar_buttom.classList.add('jry_wb_color_error','jry_wb_color_normal_prevent');else if(buttom_type=='ok')this.progress_bar_buttom.classList.add('jry_wb_color_ok','jry_wb_color_ok_prevent');else if(buttom_type=='warn')this.progress_bar_buttom.classList.add('jry_wb_color_warn','jry_wb_warn_normal_prevent');else this.progress_bar_buttom.classList.add('jry_wb_color_normal','jry_wb_color_normal_prevent');}this.progress_bar=document.createElement("div");this.progress_body.appendChild(this.progress_bar);this.progress_bar.classList.add('jry_wb_progress_bar');if(active)this.progress_bar.classList.add('jry_wb_progress_bar_active','jry_wb_progress_bar_striped');if(type=='error')this.progress_bar.classList.add('jry_wb_color_error','jry_wb_color_normal_prevent');else if(type=='ok')this.progress_bar.classList.add('jry_wb_color_ok','jry_wb_color_ok_prevent');else if(type=='warn')this.progress_bar.classList.add('jry_wb_color_warn','jry_wb_warn_normal_prevent');else this.progress_bar.classList.add('jry_wb_color_normal','jry_wb_color_normal_prevent');this.text = document.createElement("span");this.progress_bar.appendChild(this.text);this.text.oncontextmenu = function(){ return false;}; this.text.onselectstart = function(){ return false;};this.text.name="text";this.text.style.cursor='default';this.text.classList.add('jry_wb_progress_bar_progress_text');this.text.style.fontSize='16px';this.text.style.wordBreak='initial';this.text.style.whiteSpace='nowrap';this.span = document.createElement("span");this.progress_bar.appendChild(this.span);if(mouthmove!=null)this.span.classList.add("jry_wb_progress_mouth_move");this.span.oncontextmenu = function(){ return false;}; this.span.onselectstart = function(){ return false;};this.span.style.cursor='default';if(isNaN(progress))progress = 0;this.update(progress,word);var buff=function(){};this.progress_body.onclick=(e)=>{if(mouthclick==null)return;e=e||window.event;layerX=(e.clientX-this.progress_body.getBoundingClientRect().left);layerY=(e.clientY-this.progress_body.getBoundingClientRect().top);if(this.shuzhi)var progress=layerY/this.progress_body.scrollHeight;else var progress=layerX/this.progress_body.scrollWidth;if( typeof mouthclick=="function")mouthclick(progress);};this.progress_body.onmousemove=(e)=>{if(mouthmove==null)return;e=e||window.event;layerX=(e.clientX-this.progress_body.getBoundingClientRect().left);layerY=(e.clientY-this.progress_body.getBoundingClientRect().top);if(this.shuzhi)var progress=layerY/this.progress_body.scrollHeight;else var progress=layerX/this.progress_body.scrollWidth;if(this.shuzhi){var y = Math.max(0,Math.min(layerY-(this.span.scrollHeight/2),this.progress_body.scrollHeight-(this.span.scrollHeight)));this.span.style.top = y+"px";this.span.style.left="30px";this.span.style.height="25px";}else{var x = Math.max(0,Math.min(layerX-(this.span.scrollWidth/2),this.progress_body.scrollWidth-(this.span.scrollWidth)));this.span.style.left = x+"px";}if(typeof mouthmove=="function")mouthmove(progress);};}jry_wb_progress_bar.prototype.set_mouse_wheel=function(callback){this.progress_body.onmousewheel=function(e){e=e||window.event;callback((e.deltaY/100)||(e.detail/3));return false;};if(this.progress_body.addEventListener)this.progress_body.addEventListener('DOMMouseScroll',this.progress_body.onmousewheel,false);};jry_wb_progress_bar.prototype.update = function(progress,word){if(this.shuzhi){this.progress_bar.style.height=""+parseFloat(progress)*100+"%";word = word.replace(/(\s)/g,'').replace(/(\d{1})/g,'$1<br>').replace(/\s*$/,'');}else this.progress_bar.style.width=""+parseFloat(progress)*100+"%";this.text.innerHTML = word;};jry_wb_progress_bar.prototype.update_buttom = function(progress){if(this.progress_bar_buttom==null)return;if(this.shuzhi)this.progress_bar_buttom.style.height=""+parseFloat(progress)*100+"%";else this.progress_bar_buttom.style.width=""+parseFloat(progress)*100+"%";};function jry_wb_progress_bar_round(area,width,r,background_color,front_color,font_size,font_color,round){this.width = width;this.r = r;this.background_color = background_color;this.front_color = front_color;this.font_size = font_size;this.font_color = font_color;this.round = round==null?true:false;this.body = document.createElement('div');area.appendChild(this.body);this.body.style.height = this.body.style.width=(this.width+this.r)*2;this.body.style.position="relative";this.word = document.createElement('div');this.body.appendChild(this.word);this.word.innerHTML="0%";this.word.style="position:absolute;font-size:"+this.font_size+'px;top:'+((this.width+this.r)-this.font_size/2)+'px;left:'+((this.width+this.r)-this.font_size/4*(this.word.innerHTML.length))+'px;color:'+this.font_color+';';this.canvas = document.createElement('canvas');this.body.appendChild(this.canvas);this.canvas.style="position:absolute;top:0px;left:0px;";this.canvas.width = this.canvas.height=(this.width+this.r)*2;this.background = this.canvas.getContext("2d");this.background.beginPath();this.background.lineWidth = this.width;this.background.arc(this.width+this.r,this.width+this.r,this.r,0,Math.PI*2);this.background.strokeStyle = this.background_color;this.background.lineCap='round';this.background.stroke();this.background.save();this.front = this.canvas.getContext("2d");this.front.beginPath();this.front.lineWidth = this.width;this.front.strokeStyle = this.front_color;this.front.lineCap = this.round?'round':'butt';this.front.arc(this.width+this.r,this.width+this.r,this.r,Math.PI*1.5,Math.PI*(1.5+0));this.front.stroke();}jry_wb_progress_bar_round.prototype.update = function(progress){this.front.beginPath();this.front.lineWidth = this.width;this.front.strokeStyle = this.background_color;this.front.lineCap='round';this.front.arc(this.width+this.r,this.width+this.r,this.r,Math.PI*0,Math.PI*2);this.front.stroke();this.front.beginPath();this.front.lineWidth = this.width;this.front.strokeStyle = this.front_color;this.front.lineCap = this.round?'round':'butt';this.front.arc(this.width+this.r,this.width+this.r,this.r,Math.PI*1.5,Math.PI*(1.5+progress*2));this.front.stroke();this.word.innerHTML = parseInt(progress*100)+"%";this.word.style="position:absolute;font-size:"+this.font_size+'px;top:'+((this.width+this.r)-this.font_size/2)+'px;left:'+((this.width+this.r)-this.font_size/4*(this.word.innerHTML.length))+'px;color:'+this.font_color+';';};jry_wb_progress_bar_round.prototype.add = function(from,to,time,callback){if(from<to){this.update(Math.max(Math.min(1,from+0.01),0));setTimeout(()=>{this.add(from+0.01,to,time,callback);},time);}else callback();};jry_wb_progress_bar_round.prototype.minus = function(from,to,time,callback){if(from>to){this.update(Math.max(Math.min(1,from-0.01),0));setTimeout(()=>{this.minus(from-0.01,to,time,callback);},time);}else callback();};jry_wb_progress_bar_round.prototype.set = function(from,to,time,callback){callback = typeof callback=='function'?callback:function(){};if(from<to)this.add(from,to,time,callback);else this.minus(from,to,time,callback);};var jry_wb_right_tools = new function(){this.init=function(){if(typeof this.body!='undefined')return;this.body=document.createElement("div");document.body.appendChild(this.body);this.body.style.right=0;this.body.style.height='100%';this.body.style.top='0';this.body.style.position='fixed';this.body.style.width='40px';this.body.style.zIndex='9999';this.body.style.transitionDuration='1s';};this.list=[];this.add=function(button){if(typeof this.body=='undefined')this.init();if(button.parentElement!=null)button.parentElement.removeChild(button);this.body.appendChild(button);button.style.position='absolute';this.list[this.list.length]=button;this.fresh();};this.fresh=function(){for(var i=0;i<this.list.length;i++){this.list[i].style.position='absolute';this.list[i].style.top=this.body.clientHeight*0.05+this.body.clientHeight*(i+1)/(this.list.length+3);}};this.left=function(x){<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>if(typeof jry_wb_background_music.backgroundmusic_control!='undefined')jry_wb_background_music.backgroundmusic_control.style.right=x+jry_wb_background_music.backgroundmusic_icon.clientWidth;<?php } ?>this.body.style.right=x;};this.right=function(){<?php if(JRY_WB_BACKGROUND_MUSIC_SWITCH){ ?>if(typeof jry_wb_background_music.backgroundmusic_control!='undefined')jry_wb_background_music.backgroundmusic_control.style.right=jry_wb_background_music.backgroundmusic_icon.clientWidth;<?php } ?>this.body.style.right=0;};jry_wb_add_onresize(()=>{this.fresh();});jry_wb_add_onload(()=>{this.init()});};function jry_wb_set_delate_special() {}function jry_wb_set_delate_special_one(input){}const jry_wb_keycode_backspace = 8;const jry_wb_keycode_tab = 9;const jry_wb_keycode_clear = 12;const jry_wb_keycode_enter = 13;const jry_wb_keycode_shift = 16;const jry_wb_keycode_control = 17;const jry_wb_keycode_alt = 18;const jry_wb_keycode_pause = 19;const jry_wb_keycode_capslock = 20;const jry_wb_keycode_escape = 27;const jry_wb_keycode_space = 32;const jry_wb_keycode_prior = 33;const jry_wb_keycode_next = 34;const jry_wb_keycode_end = 35;const jry_wb_keycode_home = 36;const jry_wb_keycode_left = 37;const jry_wb_keycode_up = 38;const jry_wb_keycode_right = 39;const jry_wb_keycode_down = 40;const jry_wb_keycode_select = 41;const jry_wb_keycode_print = 42;const jry_wb_keycode_execute = 43;const jry_wb_keycode_insert = 45;const jry_wb_keycode_delete = 46;const jry_wb_keycode_help = 47;const jry_wb_keycode_0 = 48;const jry_wb_keycode_1 = 49;const jry_wb_keycode_2 = 50;const jry_wb_keycode_3 = 51;const jry_wb_keycode_4 = 52;const jry_wb_keycode_5 = 53;const jry_wb_keycode_6 = 54;const jry_wb_keycode_7 = 55;const jry_wb_keycode_8 = 56;const jry_wb_keycode_9 = 57;const jry_wb_keycode_a = 65;const jry_wb_keycode_b = 66;const jry_wb_keycode_c = 67;const jry_wb_keycode_d = 68;const jry_wb_keycode_e = 69;const jry_wb_keycode_f = 70;const jry_wb_keycode_g = 71;const jry_wb_keycode_h = 72;const jry_wb_keycode_i = 73;const jry_wb_keycode_j = 74;const jry_wb_keycode_k = 75;const jry_wb_keycode_l = 76;const jry_wb_keycode_m = 77;const jry_wb_keycode_n = 78;const jry_wb_keycode_o = 79;const jry_wb_keycode_p = 80;const jry_wb_keycode_q = 81;const jry_wb_keycode_r = 82;const jry_wb_keycode_s = 83;const jry_wb_keycode_t = 84;const jry_wb_keycode_u = 85;const jry_wb_keycode_v = 86;const jry_wb_keycode_w = 87;const jry_wb_keycode_x = 88;const jry_wb_keycode_y = 89;const jry_wb_keycode_z = 90;const jry_wb_keycode_win = 91;const jry_wb_keycode_0_ = 96;const jry_wb_keycode_1_ = 97;const jry_wb_keycode_2_ = 98;const jry_wb_keycode_3_ = 99;const jry_wb_keycode_4_ = 100;const jry_wb_keycode_5_ = 101;const jry_wb_keycode_6_ = 102;const jry_wb_keycode_7_ = 103;const jry_wb_keycode_8_ = 104;const jry_wb_keycode_9_ = 105;const jry_wb_keycode_f1 = 112;const jry_wb_keycode_f2 = 113;const jry_wb_keycode_f3 = 114;const jry_wb_keycode_f4 = 115;const jry_wb_keycode_f5 = 116;const jry_wb_keycode_f6 = 117;const jry_wb_keycode_f7 = 118;const jry_wb_keycode_f8 = 119;const jry_wb_keycode_f9 = 120;const jry_wb_keycode_f10 = 121;const jry_wb_keycode_f11 = 122;const jry_wb_keycode_f12 = 123;var jry_wb_short_cut_list=[];function jry_wb_set_shortcut(code,func){if(typeof code!='object')code=[code];code=code.sort();var ctrl=code.indexOf(jry_wb_keycode_control);if(ctrl!=-1)code.splice(ctrl,1),ctrl=true;else ctrl=false;var alt=code.indexOf(jry_wb_keycode_alt);if(alt!=-1)code.splice(alt,1),alt=true;else alt=false;var shift=code.indexOf(jry_wb_keycode_shift);if(shift!=-1)code.splice(shift,1),shift=true;else shift=false;for(var i=0;i<jry_wb_short_cut_list.length;i++)if(jry_wb_short_cut_list[i].ctrl==ctrl&&jry_wb_short_cut_list[i].alt==alt&&jry_wb_short_cut_list[i].shift==shift&&jry_wb_short_cut_list[i].code.toString()==code.toString())return jry_wb_short_cut_list[i].func=func;jry_wb_short_cut_list.push({'ctrl':ctrl,'alt':alt,'shift':shift,'code':code,'func':func});jry_wb_short_cut_list.sort(function(a,b){return b.code.length-a.code.length});}var jry_wb_short_cut_key_buf=[];var jry_wb_short_cut_timer=null;window.onkeyup=function(e){e=window.event||e;if(jry_wb_short_cut_timer!=null)clearTimeout(jry_wb_short_cut_timer);jry_wb_short_cut_timer=setTimeout(function(){jry_wb_short_cut_timer=null;jry_wb_short_cut_key_buf=[];},500);jry_wb_short_cut_key_buf.push(e.keyCode);jry_wb_short_cut_key_buf=jry_wb_short_cut_key_buf.sort();var ctrl=jry_wb_short_cut_key_buf.indexOf(jry_wb_keycode_control);if(ctrl!=-1)jry_wb_short_cut_key_buf.splice(ctrl,1),ctrl=true;else ctrl=false;var alt=jry_wb_short_cut_key_buf.indexOf(jry_wb_keycode_alt);if(alt!=-1)jry_wb_short_cut_key_buf.splice(alt,1),alt=true;else alt=false;var shift=jry_wb_short_cut_key_buf.indexOf(jry_wb_keycode_shift);if(shift!=-1)jry_wb_short_cut_key_buf.splice(shift,1),shift=true;else shift=false;for(var i=0;i<jry_wb_short_cut_list.length;i++)if(jry_wb_short_cut_list[i].ctrl==e.ctrlKey&&jry_wb_short_cut_list[i].alt==e.altKey&&jry_wb_short_cut_list[i].shift==e.shiftKey&&jry_wb_short_cut_list[i].code.toString()==jry_wb_short_cut_key_buf.toString())return setTimeout(function(){if(jry_wb_short_cut_timer!=null)clearTimeout(jry_wb_short_cut_timer);jry_wb_short_cut_timer=null;jry_wb_short_cut_key_buf=[];jry_wb_short_cut_list[i].func(e)},1),e.preventDefault(),false;};<?php if(JRY_WB_SOCKET_SWITCH){ ?><?php include_once('../jry_wb_configs/jry_wb_config_socket.php'); ?>var jry_wb_socket = new function(){var socket=null;this.stop=false;var timer1;var timer2;var listener=[];var listener_type=[];var error=[];var send_buf=[];this.status=0;var cnt=0;if(typeof SharedWorker=='undefined'){var start=()=>{if(this.stop||jry_wb_login_user==undefined||jry_wb_login_user.id<=0||jry_wb_login_user.id=='')return;if(socket!==null)socket.close(),socket=null;socket=new WebSocket('ws://<?php echo JRY_WB_DOMIN; ?>:<?php echo JRY_WB_SOCKET_PORT; ?>/jry_wb/jry_wb_socket/socket.php');socket.onopen=(evt)=>{onstart();this.status=socket.readyState;cnt=0;};socket.onmessage=(evt)=>{<?php if(JRY_WB_DEBUG_MODE){ ?>console.log( "Received Message: " + evt.data);<?php } ?>callback(JSON.parse(evt.data));};socket.onclose=(evt)=>{this.stop=false;this.status=socket.readyState;onclose();if(cnt++>10)setTimeout(()=>{start();},2000);else start();};};}else{var start=()=>{if(this.stop||jry_wb_login_user==undefined||jry_wb_login_user.id<=0||jry_wb_login_user.id=='')return;var worker=new SharedWorker(jry_wb_message.jry_wb_host+'jry_wb_js/jry_wb_socket_worker.js.php');socket={};worker.port.onmessage=(data)=>{data=data.data;console.log(data);if(data.type==100001){this.status=socket.readyState=data.readyState;if(socket.readyState==1)onstart();else onclose();}else if(data.type==100002)callback(data.data);};socket.send=(data)=>{var data=JSON.parse(data);if(data.type==100001)worker.port.postMessage({'type':100003,'data':data});else if(data.type==100002)worker.port.postMessage({'type':100004,'data':data});else worker.port.postMessage({'type':100002,'data':data});};worker.port.start();worker.port.postMessage({'type':100000,'data':jry_wb_login_user});worker.port.postMessage({'type':100003,'data':{'code':true,'type':100001,'data':{'add':listener_type}}});};}var onclose=()=>{if(typeof this.connect_icon=='undefined')jry_wb_add_onload(()=>{this.connect_icon.classList.remove('jry_wb_icon_connect','jry_wb_color_ok_font');this.connect_icon.classList.add('jry_wb_icon_disconnect','jry_wb_color_warn_font','jry_wb_color_normal_font');});else{jry_wb_beautiful_right_alert.alert('已断开连接，正在重连',1000,'auto','warn');this.connect_icon.classList.remove('jry_wb_icon_connect','jry_wb_color_ok_font');this.connect_icon.classList.add('jry_wb_icon_disconnect','jry_wb_color_warn_font','jry_wb_color_normal_font');}};var onstart=()=>{this.send({'code':true,'type':100001,'data':{'add':listener_type}});if(typeof this.connect_icon=='undefined')jry_wb_add_onload(()=>{this.connect_icon.classList.add('jry_wb_icon_connect','jry_wb_color_ok_font');this.connect_icon.classList.remove('jry_wb_icon_disconnect','jry_wb_color_warn_font','jry_wb_color_normal_font');});else{this.connect_icon.classList.add('jry_wb_icon_connect','jry_wb_color_ok_font');this.connect_icon.classList.remove('jry_wb_icon_disconnect','jry_wb_color_warn_font','jry_wb_color_normal_font');}};var callback=(data)=>{if(data.code==false){if(data.reason==100000)jry_wb_login_user.id=-1;else if(data.reason==500000)this.stop=true;}else{if(data.type==100000)for(var i=0;i<send_buf.length;i++)this.send(send_buf.splice(0,1)[0]);else if(data.type==100003)console.log('Now have Listener ',data.data.listener);else if(data.type==100004 && typeof error[data.data.reason]=='function')error[data.data.reason](data.data);else if(typeof listener[data.type]=='function')listener[data.type](data);}};start();jry_wb_add_onload(()=>{if(jry_wb_login_user==undefined||jry_wb_login_user.id<=0||jry_wb_login_user.id=='')return;this.connect_icon=document.createElement("p");jry_wb_right_tools.add(this.connect_icon);this.connect_icon.classList.add('jry_wb_icon_disconnect','jry_wb_icon','jry_wb_color_warn_font','jry_wb_color_normal_font');this.connect_icon.style="z-index:9999;margin:0px;right:0px;position:fixed;width:35px;height:35px;font-size:35px";});this.send=(data,add_buf)=>{if(add_buf==undefined)add_buf=true;data=JSON.stringify(data);if(socket!=null&&socket.readyState==1){socket.send(data);return true;}else{if(add_buf){data=JSON.parse(data);if(data.type!==100001)send_buf.push(data);return true;}return false;}<?php if(JRY_WB_DEBUG_MODE){ ?>console.log('Send Message: ',data);<?php } ?>};this.add_listener=(type,func)=>{<?php if(JRY_WB_DEBUG_MODE){ ?>console.log('Socket add listener at '+type+':',func);<?php } ?>type=parseInt(type);listener[type]=func;listener_type[listener_type.length]=type;this.send({'code':true,'type':100001,'data':{'add':type}});};this.delete_listener=(type)=>{type=parseInt(type);<?php if(JRY_WB_DEBUG_MODE){ ?>console.log('Socket delete listener at '+type+':');<?php } ?>this.send({'code':true,'type':100002,'data':{'del':type}});listener[type]=null;};this.add_error=(reason,func)=>{<?php if(JRY_WB_DEBUG_MODE){ ?>console.log('Socket add error at '+reason+':',func);<?php } ?>error[reason]=func;};this.add_error(500000,function(data){console.error(data.reason);});this.add_error(500001,function(data){console.error(data.reason);});this.add_error(500002,function(data){console.error(data.reason);});this.add_error(500003,function(data){console.error(data.reason);});};<?php } ?>String.prototype.to_time=function(){var dd1=new Date(this);if(isNaN(dd1.getTime()))dd1=new Date(this.replace(/\-/g, "/"));return dd1;};function jry_wb_sync_data_with_server(syncname,dataurl,array,callback,sort_cmp){jry_wb_indexeddb_get_lasttime(syncname,function(data){dataurl+=((dataurl.includes('?')?'&':'?')+'lasttime='+data.s());jry_wb_ajax_load_data(dataurl,function(data){jry_wb_loading_off();var data = JSON.parse(data);var newdata=false;if(data==null)data=[];if((typeof data.length=='number'&&data.length>0)||(typeof data.length=='undefined'&&typeof data.data!='undefined'&&data.data.length>0))newdata=true;if(typeof data.code!='undefined'&&data.code==false){if(data.reason==100000)jry_wb_beautiful_alert.alert("没有登录","","window.location.href='"+jry_wb_message.jry_wb_host+'jry_wb_mainpages/login.php'+"'");else if(data.reason==100001)jry_wb_beautiful_alert.alert("权限缺失","缺少"+data.extern,"window.location.href='"+jry_wb_message.jry_wb_host+'jry_wb_mainpages/index.php'+"'");else jry_wb_beautiful_alert.alert("错误"+data.reason,"请联系开发组");return ;}jry_wb_sync_data_with_array(syncname,data.data,function(data){data=data.sort(sort_cmp);var a=callback(data,newdata);if(a==undefined)jry_wb_indexeddb_set_lasttime(syncname,'1926-08-17 00:00:00');else jry_wb_indexeddb_set_lasttime(syncname,a);});},array);});}function jry_wb_sync_data_with_array(syncname,data,callback){jry_wb_add_on_indexeddb_open(function(){var re=jry_wb_indexeddb.transaction([syncname],'readwrite').objectStore(syncname);for(var i=0,n=data.length;i<n;i++)re.put(data[i]);jry_wb_indexeddb_get_all(syncname,callback);});}function jry_wb_test_china_id_card(idcard){idcard.toUpperCase();  if (idcard.length==15)    return jry_wb_test_china_id_card_15(idcard);  else if (idcard.length==18)    return (jry_wb_test_china_id_card_18(idcard));else     return false;}  function jry_wb_test_china_id_card_18(idcardd){  idcardd=idcardd.toUpperCase();var wi = [7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1];var valideCode = [1,0,10,9,8,7,6,5,4,3,2];var sum = 0;var idcard=[];for(var i=0;i<idcardd.length;i++)if (idcardd[i].toUpperCase()=='X')idcard[i] = 10;else idcard[i]=parseInt(idcardd[i]);  for ( var i = 0; i < 17; i++)    sum += wi[i] * idcard[i];   valCodePosition = sum % 11;   if (idcard[17] == valideCode[valCodePosition]){var year = idcardd.substring(6,10);  var month = idcardd.substring(10,12);  var day = idcardd.substring(12,14);  var temp_date = new Date(year,parseFloat(month)-1,parseFloat(day));  if(temp_date.getFullYear()!=parseFloat(year)||temp_date.getMonth()!=parseFloat(month)-1||temp_date.getDate()!=parseFloat(day)) return false;  else return true;}else     return false;  }  function jry_wb_get_sex_by_china_id_card(idcard){idcard.toUpperCase();if(!jry_wb_test_china_id_card(idcard))return false;if(idcard.length==15){  if(idcard.substring(14,15)%2==0)return 0;  else return 1;  }else if(idcard.length ==18){  if(idcard.substring(14,17)%2==0)return 0;  else return 1;  }else return false;  } function jry_wb_test_china_id_card_15(idcard15){idcard15.toUpperCase();var year=idcard15.substring(6,8);  var month=idcard15.substring(8,10);  var day=idcard15.substring(10,12);  var temp_date = new Date(year,parseFloat(month)-1,parseFloat(day));if(temp_date.getYear()!=parseFloat(year)||temp_date.getMonth()!=parseFloat(month)-1||temp_date.getDate()!=parseFloat(day))return false;else return true;  }  function jry_wb_test_is_pc(){  var userAgentInfo=navigator.userAgent;var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPod");  for ( var v = 0; v < Agents.length; v++) if (userAgentInfo.indexOf(Agents[v]) > 0)return false;return true;  }function jry_wb_test_mail(mail){var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;if(!myreg.test(mail))return false;return true;}function jry_wb_test_phone_number( phone){   if(!(/^[1](([3][0-9])|([4][5-9])|([5][0-3,5-9])|([6][5,6])|([7][0-8])|([8][0-9])|([9][1,8,9]))[0-9]{8}$/.test(phone)))    return false; return true;}function jry_wb_get_time() {var date=new Date();var seperator1="-";var seperator2=":";var month=date.getMonth() + 1;var strdate=date.getDate();if (month>=1&&month<=9)month="0" + month;if(strdate>=0&&strdate<=9)strdate="0" + strdate;var currentdate=date.getFullYear()+seperator1+month+seperator1+strdate+" "+date.getHours() +seperator2+date.getMinutes()+seperator2+date.getSeconds();return currentdate;}function jry_wb_get_server_time(){  return (new Date((new Date())-jry_wb_time_different));}function jry_wb_get_day(second,all){if(isNaN(second))return '';if(all==undefined)all=true;var date='',showed=false;second=Math.abs(second);if(Math.floor(second/60/60/24/30/12)!=0)date+=Math.floor(second/60/60/24/30/12)+'年',second-=(Math.floor(second/60/60/24/30/12)*60*60*24*30*12),showed=true;if(Math.floor(second/60/60/24/30)!=0||(all&&showed))date+=Math.floor(second/60/60/24/30)+'月',second-=(Math.floor(second/60/60/24/30)*60*60*24*30),showed=true;if(Math.floor(second/60/60/24)!=0||(all&&showed))date+=Math.floor(second/60/60/24)+'日',second-=(Math.floor(second/60/60/24)*60*60*24),showed=true;if(Math.floor(second/60/60)!=0||(all&&showed))date+=Math.floor(second/60/60)+'时',second-=(Math.floor(second/60/60)*60*60),showed=true;if(Math.floor(second/60)!=0||(all&&showed))date+=Math.floor(second/60)+'分',second-=(Math.floor(second/60)*60),showed=true;if(Math.floor(second)!=0||(all))date+=Math.floor(second)+'秒';return date;}function jry_wb_show_time(intime,addre){if(typeof addre=='string')addre=document.getElementById(addre);if(typeof intime.to_time=='function')intime=intime.to_time();setinterval(function(){var date='',buf,jie;var a=jry_wb_get_server_time();var b=intime;if((b-a)<0){var c=b;b=a;a=c;}buf=b.getSeconds()-a.getSeconds();if(buf<0)buf=60+buf,jie=1;else jie=0;date=buf+'秒'+date;buf=b.getMinutes()-a.getMinutes()-jie;if(buf<0)buf=60+buf,jie=1;else jie=0;date=buf+'分'+date;buf=b.getHours()-a.getHours()-jie;if(buf<0)buf=24+buf,jie=1;else jie=0;date=buf+'时'+date;date=Math.floor((b.getTime()-a.getTime()-jie)/(1000*60*60*24))+'天'+date;addre.innerHTML=date;},1000);}function jry_wb_compare_time(d1,d2){if(typeof d1.to_time=='function')d1=d1.to_time();if(typeof d2.to_time=='function')d2=d2.to_time();return d1-d2;}function jry_wb_compare_time(d1,d2){if(d1==undefined)d1=new Date('1926-08-17 00:00:00');if(d2==undefined)d2=new Date('1926-08-17:00:00:00');if(typeof d1.to_time=='function')d1=d1.to_time();if(typeof d2.to_time=='function')d2=d2.to_time();return d1-d2;}function jry_wb_tree(area,text,check,callback){this.check=check==undefined?true:check;this.root = document.createElement('div');area.appendChild(this.root);this.root.classList.add('jry_wb_tree_root');this.root.oncontextmenu=(event)=>{if(this.openedall)this.closeall();else this.openall();return false;};this.root.check=this.check;this.openedall=false;this.update=function(node,name,value){node.children[0].children[2].innerHTML=name;node.children[0].children[0].value=node.children[0].children[1].value=value;};this.add = function(father,name,value,check,do_update){check=check==undefined?true:check;do_update=do_update==undefined?true:do_update;if(father==this.root){var one = document.createElement('ul');father.appendChild(one);}else{var one = document.createElement('ul');father.children[1].appendChild(one);one.style='padding-left:25px;';father.style='';father.children[0].children[0].classList.add('jry_wb_tree_one_open','jry_wb_icon','jry_wb_icon_arrow_down');}one.classList.add('jry_wb_tree_one_body');var self = document.createElement('li');one.appendChild(self);self.classList.add('jry_wb_tree_one_body_self');var button = document.createElement('span');self.appendChild(button);button.id = value;var input = document.createElement('input');self.appendChild(input);input.value = value;input.type='checkbox';input.id='i'+value;if(!(check&&this.check&&father.check))input.style.display='none',one.check=false;else one.check=true;var name_dom=document.createElement('span');self.appendChild(name_dom);name_dom.innerHTML=name;var child = document.createElement('li');one.appendChild(child);child.classList.add('jry_wb_tree_one_body_children');child.style.display='none';var update=(input,from_child)=>{if(!from_child){var all = input.parentNode.parentNode.children[1].getElementsByTagName('input');for( var i = 0,n = all.length;i<n;i++)all[i].checked = input.checked;}var father = input.parentNode.parentNode;if(father==null||father.className=='jry_wb_tree_root')return;if(input.checked){var flag = true;for( var i = 0,n = father.parentNode.children.length;i<n;i++)if(!(flag&=father.parentNode.children[i].children[0].children[1].checked))break;if(flag){if(father.parentNode.parentNode.children[0]==null||father.parentNode.parentNode.children[0].children[1]==null)return;father.parentNode.parentNode.children[0].children[1].checked = true;update(father.parentNode.parentNode.children[0].children[1],true);}}else{if(father==this.root||father.parentNode==this.root||father.parentNode.parentNode==this.root||father.parentNode.parentNode.children[0]==null||father.parentNode.parentNode.children[0].children[1]==null)return;father.parentNode.parentNode.children[0].children[1].checked = false;update(father.parentNode.parentNode.children[0].children[1],true);}};one.children[0].children[0].onclick = (e)=>{if(!e)e = window.event;child.style.display = child.style.display=='none'?'':'none';if(child.style.display=='none')e.target.classList.remove('jry_wb_icon_arrow_up'),e.target.classList.add('jry_wb_icon_arrow_down');else e.target.classList.remove('jry_wb_icon_arrow_down'),e.target.classList.add('jry_wb_icon_arrow_up');this.openedall=false;window.onresize();};one.children[0].children[1].onclick = function(){if(do_update)update(this,false);if(typeof callback=='function')callback();};return one;};this.get_checked=(yasuo)=>{yasuo = yasuo==null?false:yasuo;var ans=[];if(!yasuo){var all = this.root.getElementsByTagName('input');for( var i = 0,n = all.length;i<n;i++)if(all[i].checked)ans.push(all[i].value);}else{function get_one(onebody){if(onebody.children[0].children[1].checked)ans.push(onebody.children[0].children[1].value);else for( var all = onebody.children[1].children,n = all.length,i = 0;i<n;i++)get_one(all[i]);}for( var all = this.root.children,n = all.length,i = 0;i<n;i++)get_one(all[i]);}return ans;};this.openall=()=>{this.openedall=true;for( var all = this.root.getElementsByClassName("jry_wb_tree_one_body_children"),i = 0,n = all.length;i<n;i++){if(all[i].innerHTML!=''){all[i].style.display='';all[i].parentNode.children[0].children[0].classList.remove('jry_wb_icon_arrow_down'),all[i].parentNode.children[0].children[0].classList.add('jry_wb_icon_arrow_up');}}window.onresize();};this.closeall=()=>{this.openedall=false;for( var all = this.root.getElementsByClassName("jry_wb_tree_one_body_children"),i = 0,n = all.length;i<n;i++){if(all[i].innerHTML!=''){all[i].style.display='none';all[i].parentNode.children[0].children[0].classList.remove('jry_wb_icon_arrow_up'),all[i].parentNode.children[0].children[0].classList.add('jry_wb_icon_arrow_down');}}window.onresize();};}function jry_wb_trie(){this.tree=[];var newnode=(t,w,i,d)=>{if(i==w.length)return;if(t[w[i]]==undefined)t[w[i]]={},t[w[i]].c=[],t[w[i]].p=false;t[w[i]].p|=(w.length==(i+1));if(w.length==(i+1))t[w[i]].d=d;newnode(t[w[i]].c,w,i+1,d);};var serch=(t,s,i)=>{var b=t[s[i]];if(b==undefined)return null;if(s.length==i)return null;var a=serch(b.c,s,i+1);return a==null?(b.p?b:null):a;};this.add=(word,d)=>{if(word==undefined||word=='')return;if(d==undefined)d=word;newnode(this.tree,word,0,d);};this.serch=(string,start)=>{if(start==undefined)start=0;var data=serch(this.tree,string,start);return data==null?null:data.d;};}function jry_wb_get_user_head_out(user){return 'animation: '+user.head_special.mouse_out.result+'-moz-animation:'+user.head_special.mouse_out.result+'-webkit-animation:'+user.head_special.mouse_out.result+'-o-animation:'+user.head_special.mouse_out.result;}function jry_wb_get_user_head_on(user){return 'animation: '+user.head_special.mouse_on.result+'-moz-animation:'+user.head_special.mouse_on.result+'-webkit-animation:'+user.head_special.mouse_on.result+'-o-animation:'+user.head_special.mouse_on.result;}function jry_wb_set_user_head_special(user,img,src){img.style.MozAnimationDuration=img.style.animationDuration=user.head_special.mouse_out.speed+'s';img.style.MozAnimationName=img.style.animationName=user.head_special.mouse_out.direction?'jry_wb_rotate_clockwise':'jry_wb_rotate_anticlockwise';img.style.MozAnimationIterationCount=img.style.animationIterationCount=user.head_special.mouse_out.times==-1?'infinite':user.head_special.mouse_out.times;img.style.MozAnimationDirection=img.style.animationDirection='initial';img.style.MozAnimationDelay=img.style.animationDelay="initial";img.style.MozAnimationTimingFunction=img.style.animationTimingFunction="linear";img.style.MozAnimationPlayState=img.style.animationPlayState="initial";if(img.tagName=='IMG')img.src=src||jry_wb_get_user_head(user);else img.style.backgroundImage='url('+(src||jry_wb_get_user_head(user))+')',img.style.backgroundRepeat='no-repeat',img.style.backgroundSize="100% 100%";img.onmouseover=function(){img.style.MozAnimationDuration=img.style.animationDuration=user.head_special.mouse_on.speed+'s';img.style.MozAnimationName=img.style.animationName=user.head_special.mouse_on.direction?'jry_wb_rotate_clockwise':'jry_wb_rotate_anticlockwise';img.style.MozAnimationIterationCount=img.style.animationIterationCount=user.head_special.mouse_on.times==-1?'infinite':user.head_special.mouse_on.times;};img.onmouseout=function(){img.style.MozAnimationDuration=img.style.animationDuration=user.head_special.mouse_out.speed+'s';img.style.MozAnimationName=img.style.animationName=user.head_special.mouse_out.direction?'jry_wb_rotate_clockwise':'jry_wb_rotate_anticlockwise';img.style.MozAnimationIterationCount=img.style.animationIterationCount=user.head_special.mouse_out.times==-1?'infinite':user.head_special.mouse_out.times;};img.setAttribute('name','jry_wb_user_head_'+user.id);}jry_wb_getting_user=[];jry_wb_getting_user_call_back=[];function jry_wb_get_user(id,reload,callback,admin_mode){if(reload==null)reload = false;if(admin_mode==null)admin_mode=false;var db_name='user';if(admin_mode)db_name='manage_user';var aaa=jry_wb_getting_user.indexOf(id);if(aaa!=-1){jry_wb_getting_user_call_back[aaa].push(callback);return;}var i=jry_wb_getting_user.length;jry_wb_getting_user[i]=id;jry_wb_getting_user_call_back[i]=[];jry_wb_getting_user_call_back[i].push(callback);jry_wb_add_on_indexeddb_open(function(){var re=jry_wb_indexeddb.transaction([db_name],'readwrite').objectStore(db_name).get(id);re.onsuccess=function(){var user=this.result;if(user!=undefined&&(!reload)&&user.lasttime_sync!=''&&jry_wb_compare_time(jry_wb_get_server_time(),user.lasttime_sync)<1000*60*60*2){var aaa=jry_wb_getting_user.indexOf(id);if(aaa!=-1){jry_wb_getting_user.splice(aaa,1);for(var i=0;i<jry_wb_getting_user_call_back[aaa].length;i++)jry_wb_getting_user_call_back[aaa][i](user);jry_wb_getting_user_call_back.splice(aaa,1);}return;}if(user==undefined) user={lasttime:"1926-08-17 00:00:00"};jry_wb_ajax_load_data(jry_wb_message.jry_wb_get_message+'jry_wb_get_user.php?id='+id+'&lasttime='+user.lasttime+'&admin_mode='+admin_mode,function (data){var data=JSON.parse(data);if(data.id==-1&&data.use==1)data=user,data.lasttime_sync=jry_wb_get_server_time();jry_wb_indexeddb.transaction([db_name],'readwrite').objectStore(db_name).put(data);var aaa=jry_wb_getting_user.indexOf(id);if(aaa!=-1){jry_wb_getting_user.splice(aaa,1);for(var i=0;i<jry_wb_getting_user_call_back[aaa].length;i++)jry_wb_getting_user_call_back[aaa][i](data);jry_wb_getting_user_call_back.splice(aaa,1);}jry_wb_loading_off();});};});}function jry_wb_show_user(addr,user,width,float,inline,direct){if(width==null)width='200px';if(float==null)float='';else float='float:'+float+';';if(direct==undefined)direct=false;var flag = false;if((user==null)||(user.show==null&&user.name==null&&user.head==null)){user={color:666666,show:'用户已消失'};flag = true;}else if(user!=null&&!user.use){user={color:666666,show:'[禁止使用]'};flag = true;}if(direct)var adder=addr;if(inline){if(!direct){var adder = document.createElement("span");addr.appendChild(adder);}adder.classList.add("jry_wb_show_user_inline");adder.style='width:'+width;}else{if(!direct){var adder = document.createElement("div");addr.appendChild(adder);}adder.classList.add("jry_wb_show_user");adder.style = float+';width:'+width+';overflow:hidden;';}adder.style.background="#"+user.color;if(user.show!=null)adder.innerHTML=user.show.replace(/</g,'&lt;').replace(/>/g,'&gt;');else{var span = document.createElement("span");adder.appendChild(span);span.innerHTML=user.name.replace(/</g,'&lt;').replace(/>/g,'&gt;');span.setAttribute('name','jry_wb_user_name_'+user.id);var img = document.createElement("img");jry_wb_set_user_head_special(user,img);adder.appendChild(img);}if(!flag)adder.setAttribute('onclick','jry_wb_get_and_show_user_full('+user.id+',document.body.clientWidth*0.75,document.body.clientHeight*0.75)');adder = null;}function jry_wb_show_user_full(user,width,height){if((user==null)||(user.show==null&&user.name==null&&user.head==null))return jry_wb_beautiful_alert.alert('这个用户不见了','可能去火星了');if(user!=null&&!user.use)return jry_wb_beautiful_alert.alert('这个用户被送到'+decodeURI('%E5%B9%BB%E6%83%B3%E4%B9%A1')+'了',atob('Qm95IG5leHQgY29tcHV0ZXIh'));var user_alert=new jry_wb_beautiful_alert_function;var title = user_alert.frame('用户查看',width,height,(document.body.clientWidth-width)/2,(document.body.clientHeight-height)/2);var Confirm = document.createElement("button"); title.appendChild(Confirm);  Confirm.type="button"; Confirm.innerHTML="关闭"; Confirm.style='float:right;margin-right:20px;';Confirm.onclick=function(){user_alert.close();};Confirm.classList.add("jry_wb_button","jry_wb_button_size_small","jry_wb_color_normal");Confirm = null;user_alert.msgObj.align="center";var table = document.createElement("table");user_alert.msgObj.appendChild(table);table.classList.add('jry_wb_show_user_full');var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('id');td.innerHTML='ID';var td=document.createElement("td");tr.appendChild(td);td.classList.add('id_v');td.innerHTML=user.id;var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('name');td.innerHTML='昵称';var td=document.createElement("td");tr.appendChild(td);td.classList.add('name_v');td.setAttribute('name','jry_wb_user_name_'+user.id);var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('head');td.innerHTML='头像';var td=document.createElement("td");tr.appendChild(td);td.classList.add('head_v');td.style.overflow="hidden";var img=document.createElement("img");td.appendChild(img);img.setAttribute('name','jry_wb_user_head_'+user.id);var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('grm');td.innerHTML='绿币';var td=document.createElement("td");tr.appendChild(td);td.classList.add('grm_v');td.setAttribute('name','jry_wb_user_green_money_'+user.id);var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('erd');td.innerHTML='注册日期';var td=document.createElement("td");tr.appendChild(td);td.classList.add('erd_v');td.innerHTML=user.enroldate;var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('cptn');td.innerHTML='权限组';var td=document.createElement("td");tr.appendChild(td);td.classList.add('cptn_v');td.setAttribute('name','jry_wb_user_competence_'+user.id);var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('sex');td.innerHTML='性别';var td=document.createElement("td");tr.appendChild(td);td.classList.add('sex_v');td.setAttribute('name','jry_wb_user_sex_'+user.id);var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('tel');td.innerHTML='电话';var td=document.createElement("td");tr.appendChild(td);td.classList.add('tel_v');td.setAttribute('name','jry_wb_user_tel_'+user.id);var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('mail');td.innerHTML='邮箱';var td=document.createElement("td");tr.appendChild(td);td.classList.add('mail_v');td.setAttribute('name','jry_wb_user_mail_'+user.id);var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('use');td.setAttribute('name','jry_wb_user_use_'+user.id);var td=document.createElement("td");tr.appendChild(td);td.classList.add('use_v');td.innerHTML=(user.use==0?'禁止':'正常');if(user.zhushi!=''&&user.zhushi!=null){var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('zhushi');td.innerHTML='签名';var td=document.createElement("td");tr.appendChild(td);td.classList.add('zhushi_v');td.setAttribute('name','jry_wb_user_zhushi_'+user.id);}var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('login');td.innerHTML='登录信息';var td=document.createElement("td");tr.appendChild(td);td.classList.add('login_v');td.setAttribute('name','jry_wb_user_login_'+user.id);<?php if(JRY_WB_OAUTH_SWITCH){ ?>var tr=document.createElement("tr");table.appendChild(tr);var td=document.createElement("td");tr.appendChild(td);td.classList.add('tpin');td.innerHTML='第三方接入';var td=document.createElement("td");tr.appendChild(td);td.classList.add('tpin_v');td.setAttribute('name','jry_wb_user_tp_in_'+user.id);<?php } ?>jry_wb_update_user(user);jry_wb_beautiful_scroll(user_alert.msgObj);}function jry_wb_show_user_intext(addr,user){if(!user.use){user={color:666666,show:'[禁止使用]'};flag = true;}else if((user==null)||(user.show==null&&user.name==null&&user.head==null)){user={color:666666,show:'用户已消失'};flag = true;}if(addr==undefined)document.write('<span onclick="jry_wb_get_and_show_user_full('+user.id+',document.body.clientWidth*0.75,document.body.clientHeight*0.75)" name="jry_wb_user_name_'+user.id+'" style="background:#'+user.color+';" class="jry_wb_show_user_intext">'+user.name.replace(/</g,'&lt;').replace(/>/g,'&gt;')+'</span>');else addr.onclick='jry_wb_get_and_show_user_full('+user.id+',document.body.clientWidth*0.75,document.body.clientHeight*0.75)',addr.name='jry_wb_user_name_'+user.id,addr.style.background='#'+user.color,addr.classList.add('jry_wb_show_user_intext'),addr.innerHTML=user.name.replace(/</g,'&lt;').replace(/>/g,'&gt;');}function jry_wb_get_and_show_user(addr,id,width,float,inline){if(inline)var adder = document.createElement("span");else var adder = document.createElement("div");addr.appendChild(adder);jry_wb_get_user(id,false,function(user){jry_wb_show_user(adder,user,width,float,inline,true);});}function jry_wb_get_and_show_user_intext(id){var idd=Math.random();document.write('<span id="'+idd+'" ></span>');jry_wb_get_user(id,false,function(user){jry_wb_show_user_intext(document.getElementById(idd),user);},false);}function jry_wb_get_and_show_user_full(id,width,height){jry_wb_get_user(id,false,function(user){jry_wb_show_user_full(user,width,height);if(((jry_wb_compare_time(jry_wb_get_server_time(),user.lasttime_sync)/1000/60)>5)||(jry_wb_login_user.id==id&&(jry_wb_compare_time(jry_wb_get_server_time(),user.lasttime_sync)/1000)>5))setTimeout(function(){jry_wb_get_user(id,true,function(user){jry_wb_update_user(user);})},1000);});}function jry_wb_update_user(user,mode){if(mode==undefined||mode=='head')for(var all=document.getElementsByName('jry_wb_user_head_'+user.id),i=0,n=all.length;i<n;i++)jry_wb_set_user_head_special(user,all[i]);if(mode==undefined||mode=='name')for(var all=document.getElementsByName('jry_wb_user_name_'+user.id),i=0,n=all.length;i<n;i++)all[i].innerHTML=user.name;if(mode==undefined||mode=='green_money')for(var all=document.getElementsByName('jry_wb_user_green_money_'+user.id),i=0,n=all.length;i<n;i++)all[i].innerHTML=user.green_money;if(mode==undefined||mode=='competence')for(var all=document.getElementsByName('jry_wb_user_competence_'+user.id),i=0,n=all.length;i<n;i++)all[i].innerHTML=user.competencename;if(mode==undefined||mode=='sex')for(var all=document.getElementsByName('jry_wb_user_sex_'+user.id),i=0,n=all.length;i<n;i++)all[i].innerHTML=(user.sex==0?'女':(user.sex==1?'男':(user.sex==2?'女装大佬':'咱也不知道，咱也不敢问')));if(mode==undefined||mode=='tel')for(var all=document.getElementsByName('jry_wb_user_tel_'+user.id),i=0,n=all.length;i<n;i++)all[i].innerHTML=user.tel;if(mode==undefined||mode=='mail')for(var all=document.getElementsByName('jry_wb_user_mail_'+user.id),i=0,n=all.length;i<n;i++)all[i].innerHTML=user.mail;if(mode==undefined||mode=='use')for(var all=document.getElementsByName('jry_wb_user_use_'+user.id),i=0,n=all.length;i<n;i++)all[i].innerHTML=(user.use==0?'禁止':'正常');if(mode==undefined||mode=='zhushi')for(var all=document.getElementsByName('jry_wb_user_zhushi_'+user.id),i=0,n=all.length;i<n;i++)all[i].innerHTML='',new jry_wb_markdown(all[i],user.id,0,(user.zhushi),false);if(mode==undefined||mode=='login')for(let all=document.getElementsByName('jry_wb_user_login_'+user.id),j=0,n=all.length;j<n;j++)if(user.login_addr==-1)all[j].innerHTML='该用户的隐私策略不允许展示';else{all[j].innerHTML='';if(user.login_addr.length==0)all[j].innerHTML='该用户没有登录';else for(let i = 0,n = user.login_addr.length;i<n;i++){let address=document.createElement("div");all[j].appendChild(address);jry_wb_get_ip_address(user.login_addr[i].ip,function(data){var span=document.createElement("span");address.appendChild(span);span.classList.add('country');span.innerHTML=(data.isp=='内网IP'?'':data.country);var span=document.createElement("span");address.appendChild(span);span.classList.add('region');span.innerHTML=(data.isp=='内网IP'?'':data.region);var span=document.createElement("span");address.appendChild(span);span.classList.add('isp');span.innerHTML=data.isp;var span=document.createElement("span");address.appendChild(span);span.classList.add('time');span.innerHTML=user.login_addr[i].time;var span=document.createElement("span");address.appendChild(span);span.classList.add('device');span.innerHTML=jry_wb_get_device_from_database(user.login_addr[i].device);var span=document.createElement("span");address.appendChild(span);span.classList.add('browser');span.innerHTML=jry_wb_get_browser_from_database(user.login_addr[i].browser);});}}<?php if(JRY_WB_OAUTH_SWITCH){ ?>if(mode==undefined||mode=='tp_in')for(let all=document.getElementsByName('jry_wb_user_tp_in_'+user.id),j=0,n=all.length;j<n;j++){all[j].innerHTML='';<?php if($JRY_WB_TP_QQ_OAUTH_CONFIG!=NULL){ ?>all[j].innerHTML+='QQ:';if(user.oauth==null||user.oauth.qq==null||user.oauth.qq.message==null)all[j].innerHTML+='无<br>';else all[j].innerHTML+=user.oauth.qq.message.nickname+'<img width="40px" src="'+user.oauth.qq.message.figureurl_qq_2+'"><br>';<?php } ?><?php if(JRY_WB_TP_MI_OAUTH_CLIENT_ID!=''){ ?>all[j].innerHTML+='MI:';if(user.oauth==null||user.oauth.mi==null||user.oauth.mi.message==null)all[j].innerHTML+='无<br>';else all[j].innerHTML+=user.oauth.mi.message.miliaoNick+'<img width="40px" src="'+user.oauth.mi.message.miliaoIcon_orig+'"><br>';<?php } ?><?php if(JRY_WB_TP_GITHUB_OAUTH_CLIENT_ID!=''){ ?>all[j].innerHTML+='gayhub:';if(user.oauth==null||user.oauth.github==null||user.oauth.github.message==null)all[j].innerHTML+='无<br>';else all[j].innerHTML+=user.oauth.github.message.name+','+user.oauth.github.message.login+'<img width="40px" src="'+user.oauth.github.message.avatar_url+'"><br>';<?php } ?><?php if(JRY_WB_TP_GITEE_OAUTH_CLIENT_ID!=''){ ?>all[j].innerHTML+='码云:';if(user.oauth==null||user.oauth.gitee==null||user.oauth.gitee.message==null)all[j].innerHTML+='无<br>';else all[j].innerHTML+=user.oauth.gitee.message.name+','+user.oauth.gitee.message.login+'<img width="40px" src="'+user.oauth.gitee.message.avatar_url+'"><br>';<?php } ?>}<?php } ?>}function jry_wb_get_user_head(user){if(user.head.type=='default')if(user.sex==0)user.head.type='default_head_woman';else user.head.type='default_head_man';if(user.head.type=='default_head_man')return '<?php echo JRY_WB_DEFULT_MAN_PICTURE;?>';else if(user.head.type=='default_head_woman')return '<?php echo JRY_WB_DEFULT_WOMAN_PICTURE; ?>';else if(user.head.type=='gravatar')return "http://www.gravatar.com/avatar/"+hex_md5(user.mail)+"?size=80&d=404&r=g";else if(user.head.type=='qq'&&user.oauth.qq.message!=null)return user.oauth.qq.message.figureurl_qq_2;else if(user.head.type=='github'&&user.oauth.github.message!=null)return user.oauth.github.message.avatar_url;else if(user.head.type=='qq')return "https://q2.qlogo.cn/headimg_dl?dst_uin="+user.mail.split('@')[0]+"&spec=100";else if(user.head.type=='gitee')return user.oauth.gitee.message.avatar_url;else if(user.head.type=='mi')return user.oauth.mi.message.miliaoIcon_orig;else if(user.head.type=='url')return user.head.url;else if(user.head.type=='netdisk')return jry_wb_message.jry_wb_host+'jry_wb_netdisk/jry_nd_do_file.php?action=open&share_id='+user.head.share_id+'&file_id='+user.head.file_id;}<?php if(JRY_WB_WORD_SPECIAL_FACT_SWITCH){ ?>var jry_wb_word_special_fact=new function(){this.switch = true;this.word=[];jry_wb_add_onclick((event)=>{this.run(event)});this.run = function(event){if(!this.switch)return ;if(this.word.length==0)return;if(typeof event.path!='undefined'&&typeof event.path[0]!='undefined'&&(typeof event.path[0].onclick=='function' ||typeof event.path[0].onmouseup=='function' ||typeof event.path[0].onmousedown=='function' || event.path[0].tagName=='BUTTON' || event.path[0].tagName=='INPUT'))return;if(typeof event.target!='undefined'&&(typeof event.target.onclick=='function' ||typeof event.target.onmouseup=='function' ||typeof event.target.onmousedown=='function' || event.target.tagName=='BUTTON' || event.target.tagName=='INPUT'))return ;if(typeof event.srcElement!='undefined'&&(typeof event.srcElement.onclick=='function' ||typeof event.srcElement.onmouseup=='function' ||typeof event.srcElement.onmousedown=='function' || event.srcElement.tagName=='BUTTON' || event.srcElement.tagName=='INPUT'))return ;if(typeof event.toElement!='undefined'&&(typeof event.toElement.onclick=='function' ||typeof event.toElement.onmouseup=='function' ||typeof event.toElement.onmousedown=='function' || event.toElement.tagName=='BUTTON' || event.toElement.tagName=='INPUT'))return ;var word = document.createElement("span");document.body.appendChild(word);var scrollLeft = document.body.scrollLeft==0?document.documentElement.scrollLeft:document.body.scrollLeft;word.innerHTML = this.word[parseInt(Math.random()*this.word.length%this.word.length)];word.classList.add('jry_wb_word_special_fact');word.style.top=event.clientY-35;word.style.left=Math.min(event.clientX+scrollLeft,document.body.clientWidth+scrollLeft-word.offsetWidth-35);word.style.opacity=1;word.style.fontSize='30px';word.style.position='fixed';setTimeout(function(){word.style.transitionDuration=(event.clientY-35+16)/200+'s';word.style.top=-16;word.style.opacity=0;word.style.fontSize='0px';},5);setTimeout(function(){document.body.removeChild(word);},1000*(event.clientY-35+16)/200);};};<?php } ?>